duckdb 0.3.5-dev250.0 → 0.3.5-dev258.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
- "version": "0.3.5-dev250.0",
4
+ "version": "0.3.5-dev258.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -58827,10 +58827,10 @@ static void SortCollectionForPartition(WindowOperatorState &state, BoundWindowEx
58827
58827
 
58828
58828
  // fuse input and sort collection into one
58829
58829
  // (sorting columns are not decoded, and we need them later)
58830
- ChunkCollection payload;
58831
- payload.Fuse(input);
58832
- payload.Fuse(over);
58833
- auto payload_types = payload.Types();
58830
+ auto payload_types = input.Types();
58831
+ payload_types.insert(payload_types.end(), over.Types().begin(), over.Types().end());
58832
+ DataChunk payload_chunk;
58833
+ payload_chunk.InitializeEmpty(payload_types);
58834
58834
 
58835
58835
  // initialise partitioning memory
58836
58836
  // to minimise copying, we fill up a chunk and then sink it.
@@ -58856,8 +58856,15 @@ static void SortCollectionForPartition(WindowOperatorState &state, BoundWindowEx
58856
58856
  // sink collection chunks into row format
58857
58857
  const idx_t chunk_count = over.ChunkCount();
58858
58858
  for (idx_t i = 0; i < chunk_count; i++) {
58859
+ auto &input_chunk = *input.Chunks()[i];
58860
+ for (idx_t col_idx = 0; col_idx < input_chunk.ColumnCount(); ++col_idx) {
58861
+ payload_chunk.data[col_idx].Reference(input_chunk.data[col_idx]);
58862
+ }
58859
58863
  auto &over_chunk = *over.Chunks()[i];
58860
- auto &payload_chunk = *payload.Chunks()[i];
58864
+ for (idx_t col_idx = 0; col_idx < over_chunk.ColumnCount(); ++col_idx) {
58865
+ payload_chunk.data[input_chunk.ColumnCount() + col_idx].Reference(over_chunk.data[col_idx]);
58866
+ }
58867
+ payload_chunk.SetCardinality(input_chunk);
58861
58868
 
58862
58869
  // Extract the hash partition, if any
58863
58870
  if (hashes) {
@@ -83735,7 +83742,7 @@ static void HistogramFinalize(Vector &state_vector, FunctionData *, Vector &resu
83735
83742
  list_struct_data = FlatVector::GetData<list_entry_t>(*count_list);
83736
83743
  list_struct_data[rid].length = ListVector::GetListSize(*count_list) - old_len;
83737
83744
  list_struct_data[rid].offset = old_len;
83738
- old_len = list_struct_data[rid].length;
83745
+ old_len += list_struct_data[rid].length;
83739
83746
  }
83740
83747
  }
83741
83748
 
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 "91d3928b6"
15
- #define DUCKDB_VERSION "v0.3.5-dev250"
14
+ #define DUCKDB_SOURCE_ID "fe433d317"
15
+ #define DUCKDB_VERSION "v0.3.5-dev258"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //