duckdb 0.4.1-dev152.0 → 0.4.1-dev169.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/data_chunk.cpp +1 -1
- package/src/duckdb.cpp +8 -2
- package/src/duckdb.hpp +34 -24
- package/src/parquet-amalgamation.cpp +37065 -37065
package/package.json
CHANGED
package/src/data_chunk.cpp
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -105380,7 +105380,7 @@ typedef unique_ptr<ArrowArrayStreamWrapper> (*stream_factory_produce_t)(
|
|
|
105380
105380
|
TableFilterSet *filters);
|
|
105381
105381
|
typedef void (*stream_factory_get_schema_t)(uintptr_t stream_factory_ptr, ArrowSchemaWrapper &schema);
|
|
105382
105382
|
|
|
105383
|
-
struct ArrowScanFunctionData : public
|
|
105383
|
+
struct ArrowScanFunctionData : public PyTableFunctionData {
|
|
105384
105384
|
ArrowScanFunctionData(idx_t rows_per_thread_p, stream_factory_produce_t scanner_producer_p,
|
|
105385
105385
|
uintptr_t stream_factory_ptr_p)
|
|
105386
105386
|
: lines_read(0), rows_per_thread(rows_per_thread_p), stream_factory_ptr(stream_factory_ptr_p),
|
|
@@ -169833,6 +169833,10 @@ unique_ptr<BoundTableRef> Binder::Bind(TableFunctionRef &ref) {
|
|
|
169833
169833
|
TableFunctionBindInput bind_input(parameters, named_parameters, input_table_types, input_table_names,
|
|
169834
169834
|
table_function.function_info.get());
|
|
169835
169835
|
bind_data = table_function.bind(context, bind_input, return_types, return_names);
|
|
169836
|
+
if (table_function.name == "pandas_scan" || table_function.name == "arrow_scan") {
|
|
169837
|
+
auto arrow_bind = (PyTableFunctionData *)bind_data.get();
|
|
169838
|
+
arrow_bind->external_dependency = move(ref.external_dependency);
|
|
169839
|
+
}
|
|
169836
169840
|
}
|
|
169837
169841
|
if (return_types.size() != return_names.size()) {
|
|
169838
169842
|
throw InternalException(
|
|
@@ -174092,7 +174096,9 @@ void Planner::CreatePlan(SQLStatement &statement) {
|
|
|
174092
174096
|
value_map[expr->parameter_nr] = vector<unique_ptr<Value>>();
|
|
174093
174097
|
} else if (entry->second.back()->type() != value->type()) {
|
|
174094
174098
|
// used before, but types are inconsistent
|
|
174095
|
-
throw BinderException(
|
|
174099
|
+
throw BinderException(
|
|
174100
|
+
"Inconsistent types found for parameter with index %llu, current type %s, new type %s",
|
|
174101
|
+
expr->parameter_nr, entry->second.back()->type().ToString(), value->type().ToString());
|
|
174096
174102
|
}
|
|
174097
174103
|
value_map[expr->parameter_nr].push_back(move(value));
|
|
174098
174104
|
}
|
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.4.1-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "cee035630"
|
|
15
|
+
#define DUCKDB_VERSION "v0.4.1-dev169"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -5453,7 +5453,6 @@ private:
|
|
|
5453
5453
|
|
|
5454
5454
|
|
|
5455
5455
|
|
|
5456
|
-
|
|
5457
5456
|
//===----------------------------------------------------------------------===//
|
|
5458
5457
|
// DuckDB
|
|
5459
5458
|
//
|
|
@@ -5659,6 +5658,29 @@ using named_parameter_map_t = case_insensitive_map_t<Value>;
|
|
|
5659
5658
|
} // namespace duckdb
|
|
5660
5659
|
|
|
5661
5660
|
|
|
5661
|
+
|
|
5662
|
+
//===----------------------------------------------------------------------===//
|
|
5663
|
+
// DuckDB
|
|
5664
|
+
//
|
|
5665
|
+
// duckdb/main/external_dependencies.hpp
|
|
5666
|
+
//
|
|
5667
|
+
//
|
|
5668
|
+
//===----------------------------------------------------------------------===//
|
|
5669
|
+
|
|
5670
|
+
|
|
5671
|
+
|
|
5672
|
+
namespace duckdb {
|
|
5673
|
+
|
|
5674
|
+
enum ExternalDependenciesType { PYTHON_DEPENDENCY };
|
|
5675
|
+
class ExternalDependency {
|
|
5676
|
+
public:
|
|
5677
|
+
explicit ExternalDependency(ExternalDependenciesType type_p) : type(type_p) {};
|
|
5678
|
+
virtual ~ExternalDependency() {};
|
|
5679
|
+
ExternalDependenciesType type;
|
|
5680
|
+
};
|
|
5681
|
+
|
|
5682
|
+
} // namespace duckdb
|
|
5683
|
+
|
|
5662
5684
|
//===----------------------------------------------------------------------===//
|
|
5663
5685
|
// DuckDB
|
|
5664
5686
|
//
|
|
@@ -6362,6 +6384,11 @@ struct TableFunctionData : public FunctionData {
|
|
|
6362
6384
|
DUCKDB_API bool Equals(const FunctionData &other) const override;
|
|
6363
6385
|
};
|
|
6364
6386
|
|
|
6387
|
+
struct PyTableFunctionData : public TableFunctionData {
|
|
6388
|
+
//! External dependencies of this table function
|
|
6389
|
+
unique_ptr<ExternalDependency> external_dependency;
|
|
6390
|
+
};
|
|
6391
|
+
|
|
6365
6392
|
struct FunctionParameters {
|
|
6366
6393
|
vector<Value> values;
|
|
6367
6394
|
named_parameter_map_t named_parameters;
|
|
@@ -17701,27 +17728,6 @@ public:
|
|
|
17701
17728
|
|
|
17702
17729
|
} // namespace duckdb
|
|
17703
17730
|
|
|
17704
|
-
//===----------------------------------------------------------------------===//
|
|
17705
|
-
// DuckDB
|
|
17706
|
-
//
|
|
17707
|
-
// duckdb/main/external_dependencies.hpp
|
|
17708
|
-
//
|
|
17709
|
-
//
|
|
17710
|
-
//===----------------------------------------------------------------------===//
|
|
17711
|
-
|
|
17712
|
-
|
|
17713
|
-
|
|
17714
|
-
namespace duckdb {
|
|
17715
|
-
|
|
17716
|
-
enum ExternalDependenciesType { PYTHON_DEPENDENCY };
|
|
17717
|
-
class ExternalDependency {
|
|
17718
|
-
public:
|
|
17719
|
-
explicit ExternalDependency(ExternalDependenciesType type_p) : type(type_p) {};
|
|
17720
|
-
virtual ~ExternalDependency() {};
|
|
17721
|
-
ExternalDependenciesType type;
|
|
17722
|
-
};
|
|
17723
|
-
|
|
17724
|
-
} // namespace duckdb
|
|
17725
17731
|
|
|
17726
17732
|
|
|
17727
17733
|
namespace duckdb {
|
|
@@ -24562,6 +24568,7 @@ public:
|
|
|
24562
24568
|
|
|
24563
24569
|
|
|
24564
24570
|
|
|
24571
|
+
|
|
24565
24572
|
namespace duckdb {
|
|
24566
24573
|
//! Represents a Table producing function
|
|
24567
24574
|
class TableFunctionRef : public TableRef {
|
|
@@ -24574,6 +24581,9 @@ public:
|
|
|
24574
24581
|
// if the function takes a subquery as argument its in here
|
|
24575
24582
|
unique_ptr<SelectStatement> subquery;
|
|
24576
24583
|
|
|
24584
|
+
// External dependencies of this table funcion
|
|
24585
|
+
unique_ptr<ExternalDependency> external_dependency;
|
|
24586
|
+
|
|
24577
24587
|
public:
|
|
24578
24588
|
string ToString() const override;
|
|
24579
24589
|
|