duckdb 0.5.2-dev32.0 → 0.5.2-dev34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/duckdb.cpp +9 -4
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +37527 -37527
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -45711,6 +45711,11 @@ public:
|
|
|
45711
45711
|
return layout.GetTypes();
|
|
45712
45712
|
}
|
|
45713
45713
|
|
|
45714
|
+
//! The number of rows in the collection
|
|
45715
|
+
inline idx_t Count() const {
|
|
45716
|
+
return total_count;
|
|
45717
|
+
}
|
|
45718
|
+
|
|
45714
45719
|
//! The number of rows scanned so far
|
|
45715
45720
|
inline idx_t Scanned() const {
|
|
45716
45721
|
return total_scanned;
|
|
@@ -66292,7 +66297,7 @@ void WindowBoundariesState::Update(const idx_t row_idx, WindowInputColumn &range
|
|
|
66292
66297
|
struct WindowExecutor {
|
|
66293
66298
|
WindowExecutor(BoundWindowExpression *wexpr, Allocator &allocator, const idx_t count);
|
|
66294
66299
|
|
|
66295
|
-
void Sink(DataChunk &input_chunk, const idx_t input_idx);
|
|
66300
|
+
void Sink(DataChunk &input_chunk, const idx_t input_idx, const idx_t total_count);
|
|
66296
66301
|
void Finalize(WindowAggregationMode mode);
|
|
66297
66302
|
|
|
66298
66303
|
void Evaluate(idx_t row_idx, DataChunk &input_chunk, Vector &result, const ValidityMask &partition_mask,
|
|
@@ -66366,7 +66371,7 @@ WindowExecutor::WindowExecutor(BoundWindowExpression *wexpr, Allocator &allocato
|
|
|
66366
66371
|
PrepareInputExpressions(exprs.data(), exprs.size(), payload_executor, payload_chunk);
|
|
66367
66372
|
}
|
|
66368
66373
|
|
|
66369
|
-
void WindowExecutor::Sink(DataChunk &input_chunk, const idx_t input_idx) {
|
|
66374
|
+
void WindowExecutor::Sink(DataChunk &input_chunk, const idx_t input_idx, const idx_t total_count) {
|
|
66370
66375
|
// Single pass over the input to produce the global data.
|
|
66371
66376
|
// Vectorisation for the win...
|
|
66372
66377
|
|
|
@@ -66401,7 +66406,7 @@ void WindowExecutor::Sink(DataChunk &input_chunk, const idx_t input_idx) {
|
|
|
66401
66406
|
if (!vdata.validity.AllValid()) {
|
|
66402
66407
|
// Lazily materialise the contents when we find the first NULL
|
|
66403
66408
|
if (ignore_nulls.AllValid()) {
|
|
66404
|
-
ignore_nulls.Initialize(
|
|
66409
|
+
ignore_nulls.Initialize(total_count);
|
|
66405
66410
|
}
|
|
66406
66411
|
// Write to the current position
|
|
66407
66412
|
// Chunks in a collection are full, so we don't have to worry about raggedness
|
|
@@ -66930,7 +66935,7 @@ void WindowLocalSourceState::GeneratePartition(WindowGlobalSinkState &gstate, co
|
|
|
66930
66935
|
|
|
66931
66936
|
// TODO: Parallelization opportunity
|
|
66932
66937
|
for (auto &wexec : window_execs) {
|
|
66933
|
-
wexec->Sink(input_chunk, input_idx);
|
|
66938
|
+
wexec->Sink(input_chunk, input_idx, scanner->Count());
|
|
66934
66939
|
}
|
|
66935
66940
|
input_idx += input_chunk.size();
|
|
66936
66941
|
}
|
package/src/duckdb.hpp
CHANGED
|
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
11
11
|
#pragma once
|
|
12
12
|
#define DUCKDB_AMALGAMATION 1
|
|
13
13
|
#define DUCKDB_AMALGAMATION_EXTENDED 1
|
|
14
|
-
#define DUCKDB_SOURCE_ID "
|
|
15
|
-
#define DUCKDB_VERSION "v0.5.2-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "d8f7ef99b"
|
|
15
|
+
#define DUCKDB_VERSION "v0.5.2-dev34"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|