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 +1 -1
- package/src/database.cpp +2 -2
- package/src/duckdb/extension/parquet/parquet-extension.cpp +3 -3
- package/src/duckdb/src/common/types/row_data_collection_scanner.cpp +8 -0
- package/src/duckdb/src/execution/operator/aggregate/physical_window.cpp +313 -410
- package/src/duckdb/src/function/table/read_csv.cpp +2 -3
- package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
- package/src/duckdb/src/include/duckdb/common/radix_partitioning.hpp +4 -0
- package/src/duckdb/src/include/duckdb/common/types/row_data_collection_scanner.hpp +4 -1
- package/src/duckdb/src/include/duckdb/function/replacement_scan.hpp +3 -3
- package/src/duckdb/src/include/duckdb/main/client_context.hpp +5 -0
- package/src/duckdb/src/include/duckdb/main/materialized_query_result.hpp +1 -0
- package/src/duckdb/src/include/duckdb/main/query_result.hpp +3 -0
- package/src/duckdb/src/main/capi/replacement_scan-c.cpp +3 -3
- package/src/duckdb/src/main/client_context.cpp +25 -6
- package/src/duckdb/src/main/materialized_query_result.cpp +12 -0
- package/src/duckdb/src/main/query_result.cpp +5 -0
- package/src/duckdb/src/main/stream_query_result.cpp +1 -0
- package/src/duckdb/src/planner/binder/tableref/bind_basetableref.cpp +10 -1
package/package.json
CHANGED
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::
|
|
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<
|
|
813
|
-
|
|
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
|