duckdb 0.6.2-dev2348.0 → 0.6.2-dev2378.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
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.6.2-dev2348.0",
5
+ "version": "0.6.2-dev2378.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
@@ -125,21 +125,13 @@ ColumnDataRowCollection::ColumnDataRowCollection(const ColumnDataCollection &col
125
125
  }
126
126
  // read all the chunks
127
127
  ColumnDataScanState temp_scan_state;
128
- collection.InitializeScan(temp_scan_state);
128
+ collection.InitializeScan(temp_scan_state, ColumnDataScanProperties::DISALLOW_ZERO_COPY);
129
129
  while (true) {
130
130
  auto chunk = make_unique<DataChunk>();
131
131
  collection.InitializeScanChunk(*chunk);
132
132
  if (!collection.Scan(temp_scan_state, *chunk)) {
133
133
  break;
134
134
  }
135
- // we keep the BufferHandles that are needed for the materialized collection pinned in the supplied scan_state
136
- auto &temp_handles = temp_scan_state.current_chunk_state.handles;
137
- auto &scan_handles = scan_state.current_chunk_state.handles;
138
- for (auto &temp_handle_pair : temp_handles) {
139
- auto handle_copy =
140
- make_pair<uint32_t, BufferHandle>(scan_handles.size(), std::move(temp_handle_pair.second));
141
- scan_state.current_chunk_state.handles.insert(std::move(handle_copy));
142
- }
143
135
  chunks.push_back(std::move(chunk));
144
136
  }
145
137
  // now create all of the column data rows
@@ -368,8 +368,9 @@ static unique_ptr<FunctionData> ListFilterBind(ClientContext &context, ScalarFun
368
368
  // try to cast to boolean, if the return type of the lambda filter expression is not already boolean
369
369
  auto &bound_lambda_expr = (BoundLambdaExpression &)*arguments[1];
370
370
  if (bound_lambda_expr.lambda_expr->return_type != LogicalType::BOOLEAN) {
371
- bound_lambda_expr.lambda_expr = std::move(BoundCastExpression::AddCastToType(
372
- context, std::move(bound_lambda_expr.lambda_expr), LogicalType::BOOLEAN));
371
+ auto cast_lambda_expr =
372
+ BoundCastExpression::AddCastToType(context, std::move(bound_lambda_expr.lambda_expr), LogicalType::BOOLEAN);
373
+ bound_lambda_expr.lambda_expr = std::move(cast_lambda_expr);
373
374
  }
374
375
 
375
376
  bound_function.return_type = arguments[0]->return_type;
@@ -1,8 +1,8 @@
1
1
  #ifndef DUCKDB_VERSION
2
- #define DUCKDB_VERSION "0.6.2-dev2348"
2
+ #define DUCKDB_VERSION "0.6.2-dev2378"
3
3
  #endif
4
4
  #ifndef DUCKDB_SOURCE_ID
5
- #define DUCKDB_SOURCE_ID "3ee9cbb0ea"
5
+ #define DUCKDB_SOURCE_ID "fbf8fe2ba7"
6
6
  #endif
7
7
  #include "duckdb/function/table/system_functions.hpp"
8
8
  #include "duckdb/main/database.hpp"