duckdb 0.5.1-dev216.0 → 0.5.1-dev222.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 +6 -2
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +35561 -35561
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -115227,8 +115227,8 @@ struct ArrowScanLocalState : public LocalTableFunctionState {
|
|
|
115227
115227
|
struct ArrowScanGlobalState : public GlobalTableFunctionState {
|
|
115228
115228
|
unique_ptr<ArrowArrayStreamWrapper> stream;
|
|
115229
115229
|
mutex main_mutex;
|
|
115230
|
-
bool ready = false;
|
|
115231
115230
|
idx_t max_threads = 1;
|
|
115231
|
+
bool done = false;
|
|
115232
115232
|
|
|
115233
115233
|
idx_t MaxThreads() const override {
|
|
115234
115234
|
return max_threads;
|
|
@@ -115516,6 +115516,9 @@ idx_t ArrowTableFunction::ArrowScanMaxThreads(ClientContext &context, const Func
|
|
|
115516
115516
|
bool ArrowScanParallelStateNext(ClientContext &context, const FunctionData *bind_data_p, ArrowScanLocalState &state,
|
|
115517
115517
|
ArrowScanGlobalState ¶llel_state) {
|
|
115518
115518
|
lock_guard<mutex> parallel_lock(parallel_state.main_mutex);
|
|
115519
|
+
if (parallel_state.done) {
|
|
115520
|
+
return false;
|
|
115521
|
+
}
|
|
115519
115522
|
state.chunk_offset = 0;
|
|
115520
115523
|
|
|
115521
115524
|
auto current_chunk = parallel_state.stream->GetNextChunk();
|
|
@@ -115525,6 +115528,7 @@ bool ArrowScanParallelStateNext(ClientContext &context, const FunctionData *bind
|
|
|
115525
115528
|
state.chunk = move(current_chunk);
|
|
115526
115529
|
//! have we run out of chunks? we are done
|
|
115527
115530
|
if (!state.chunk->arrow_array.release) {
|
|
115531
|
+
parallel_state.done = true;
|
|
115528
115532
|
return false;
|
|
115529
115533
|
}
|
|
115530
115534
|
return true;
|
|
@@ -182642,7 +182646,7 @@ unique_ptr<LogicalOperator> Binder::CreatePlan(BoundEmptyTableRef &ref) {
|
|
|
182642
182646
|
namespace duckdb {
|
|
182643
182647
|
|
|
182644
182648
|
unique_ptr<LogicalOperator> Binder::CreatePlan(BoundExpressionListRef &ref) {
|
|
182645
|
-
auto root = make_unique_base<LogicalOperator, LogicalDummyScan>(
|
|
182649
|
+
auto root = make_unique_base<LogicalOperator, LogicalDummyScan>(GenerateTableIndex());
|
|
182646
182650
|
// values list, first plan any subqueries in the list
|
|
182647
182651
|
for (auto &expr_list : ref.values) {
|
|
182648
182652
|
for (auto &expr : expr_list) {
|
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.1-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "a59d38250"
|
|
15
|
+
#define DUCKDB_VERSION "v0.5.1-dev222"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|