Skip to content

Commit

Permalink
Update vendored DuckDB sources to 898a81e
Browse files Browse the repository at this point in the history
  • Loading branch information
duckdblabs-bot committed Oct 18, 2024
1 parent 898a81e commit 378af7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/duckdb/src/execution/window_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1671,23 +1671,23 @@ void WindowLeadLagExecutor::EvaluateInternal(WindowExecutorGlobalState &gstate,
// else offset is zero, so don't move.

if (can_shift) {
const auto target_limit = MinValue(partition_end[i], row_end) - row_idx;
if (!delta) {
// Copy source[index:index+width] => result[i:]
const auto index = NumericCast<idx_t>(val_idx);
const auto source_limit = partition_end[i] - index;
const auto target_limit = MinValue(partition_end[i], row_end) - row_idx;
const auto width = MinValue(source_limit, target_limit);
auto &source = payload_collection.data[0];
VectorOperations::Copy(source, result, index + width, index, i);
i += width;
row_idx += width;
} else if (wexpr.default_expr) {
const auto width = MinValue(delta, count - i);
const auto width = MinValue(delta, target_limit);
llstate.leadlag_default.CopyCell(result, i, width);
i += width;
row_idx += width;
} else {
for (idx_t nulls = MinValue(delta, count - i); nulls--; ++i, ++row_idx) {
for (idx_t nulls = MinValue(delta, target_limit); nulls--; ++i, ++row_idx) {
FlatVector::SetNull(result, i, true);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/duckdb/src/function/table/version/pragma_version.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef DUCKDB_PATCH_VERSION
#define DUCKDB_PATCH_VERSION "3-dev23"
#define DUCKDB_PATCH_VERSION "3-dev25"
#endif
#ifndef DUCKDB_MINOR_VERSION
#define DUCKDB_MINOR_VERSION 1
Expand All @@ -8,10 +8,10 @@
#define DUCKDB_MAJOR_VERSION 1
#endif
#ifndef DUCKDB_VERSION
#define DUCKDB_VERSION "v1.1.3-dev23"
#define DUCKDB_VERSION "v1.1.3-dev25"
#endif
#ifndef DUCKDB_SOURCE_ID
#define DUCKDB_SOURCE_ID "1bb332c9c5"
#define DUCKDB_SOURCE_ID "98d4ad28be"
#endif
#include "duckdb/function/table/system_functions.hpp"
#include "duckdb/main/database.hpp"
Expand Down

0 comments on commit 378af7e

Please sign in to comment.