duckdb 0.6.2-dev1339.0 → 0.6.2-dev1366.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-dev1339.0",
5
+ "version": "0.6.2-dev1366.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
package/src/database.cpp CHANGED
@@ -315,7 +315,7 @@ void DuckDBNodeRSLauncher(Napi::Env env, Napi::Function jsrs, std::nullptr_t *,
315
315
  jsargs->done = true;
316
316
  }
317
317
 
318
- static duckdb::unique_ptr<duckdb::TableFunctionRef>
318
+ static duckdb::unique_ptr<duckdb::TableRef>
319
319
  ScanReplacement(duckdb::ClientContext &context, const std::string &table_name, duckdb::ReplacementScanData *data) {
320
320
  JSRSArgs jsargs;
321
321
  jsargs.table = table_name;
@@ -334,7 +334,7 @@ ScanReplacement(duckdb::ClientContext &context, const std::string &table_name, d
334
334
  }
335
335
  table_function->function =
336
336
  duckdb::make_unique<duckdb::FunctionExpression>(jsargs.function, std::move(children));
337
- return table_function;
337
+ return std::move(table_function);
338
338
  }
339
339
  return nullptr;
340
340
  }
@@ -809,8 +809,8 @@ bool ParquetWriteIsParallel(ClientContext &context, FunctionData &bind_data) {
809
809
  return true;
810
810
  }
811
811
 
812
- unique_ptr<TableFunctionRef> ParquetScanReplacement(ClientContext &context, const string &table_name,
813
- ReplacementScanData *data) {
812
+ unique_ptr<TableRef> ParquetScanReplacement(ClientContext &context, const string &table_name,
813
+ ReplacementScanData *data) {
814
814
  auto lower_name = StringUtil::Lower(table_name);
815
815
  if (!StringUtil::EndsWith(lower_name, ".parquet") && !StringUtil::Contains(lower_name, ".parquet?")) {
816
816
  return nullptr;
@@ -819,7 +819,7 @@ unique_ptr<TableFunctionRef> ParquetScanReplacement(ClientContext &context, cons
819
819
  vector<unique_ptr<ParsedExpression>> children;
820
820
  children.push_back(make_unique<ConstantExpression>(Value(table_name)));
821
821
  table_function->function = make_unique<FunctionExpression>("parquet_scan", std::move(children));
822
- return table_function;
822
+ return std::move(table_function);
823
823
  }
824
824
 
825
825
  void ParquetExtension::Load(DuckDB &db) {
@@ -271,4 +271,12 @@ void RowDataCollectionScanner::Scan(DataChunk &chunk) {
271
271
  }
272
272
  }
273
273
 
274
+ void RowDataCollectionScanner::Reset(bool flush_p) {
275
+ flush = flush_p;
276
+ total_scanned = 0;
277
+
278
+ read_state.block_idx = 0;
279
+ read_state.entry_idx = 0;
280
+ }
281
+
274
282
  } // namespace duckdb