duckdb 0.6.1-dev131.0 → 0.6.1-dev133.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 +64 -1
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +37619 -37619
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -193749,6 +193749,33 @@ unique_ptr<BoundTableRef> Binder::Bind(SubqueryRef &ref, CommonTableExpressionIn
|
|
|
193749
193749
|
|
|
193750
193750
|
|
|
193751
193751
|
|
|
193752
|
+
//===----------------------------------------------------------------------===//
|
|
193753
|
+
// DuckDB
|
|
193754
|
+
//
|
|
193755
|
+
// duckdb/planner/expression_binder/table_function_binder.hpp
|
|
193756
|
+
//
|
|
193757
|
+
//
|
|
193758
|
+
//===----------------------------------------------------------------------===//
|
|
193759
|
+
|
|
193760
|
+
|
|
193761
|
+
|
|
193762
|
+
|
|
193763
|
+
|
|
193764
|
+
namespace duckdb {
|
|
193765
|
+
|
|
193766
|
+
//! The Table function binder can bind standard table function parameters (i.e. non-table-in-out functions)
|
|
193767
|
+
class TableFunctionBinder : public ExpressionBinder {
|
|
193768
|
+
public:
|
|
193769
|
+
TableFunctionBinder(Binder &binder, ClientContext &context);
|
|
193770
|
+
|
|
193771
|
+
protected:
|
|
193772
|
+
BindResult BindColumnReference(ColumnRefExpression &expr);
|
|
193773
|
+
BindResult BindExpression(unique_ptr<ParsedExpression> *expr, idx_t depth, bool root_expression = false) override;
|
|
193774
|
+
|
|
193775
|
+
string UnsupportedAggregateMessage() override;
|
|
193776
|
+
};
|
|
193777
|
+
|
|
193778
|
+
} // namespace duckdb
|
|
193752
193779
|
|
|
193753
193780
|
|
|
193754
193781
|
|
|
@@ -193825,7 +193852,7 @@ bool Binder::BindTableFunctionParameters(TableFunctionCatalogEntry &table_functi
|
|
|
193825
193852
|
continue;
|
|
193826
193853
|
}
|
|
193827
193854
|
|
|
193828
|
-
|
|
193855
|
+
TableFunctionBinder binder(*this, context);
|
|
193829
193856
|
LogicalType sql_type;
|
|
193830
193857
|
auto expr = binder.Bind(child, &sql_type);
|
|
193831
193858
|
if (expr->HasParameter()) {
|
|
@@ -197291,6 +197318,42 @@ BindResult SelectBinder::BindGroup(ParsedExpression &expr, idx_t depth, idx_t gr
|
|
|
197291
197318
|
} // namespace duckdb
|
|
197292
197319
|
|
|
197293
197320
|
|
|
197321
|
+
|
|
197322
|
+
|
|
197323
|
+
namespace duckdb {
|
|
197324
|
+
|
|
197325
|
+
TableFunctionBinder::TableFunctionBinder(Binder &binder, ClientContext &context) : ExpressionBinder(binder, context) {
|
|
197326
|
+
}
|
|
197327
|
+
|
|
197328
|
+
BindResult TableFunctionBinder::BindColumnReference(ColumnRefExpression &expr) {
|
|
197329
|
+
auto result_name = StringUtil::Join(expr.column_names, ".");
|
|
197330
|
+
return BindResult(make_unique<BoundConstantExpression>(Value(result_name)));
|
|
197331
|
+
}
|
|
197332
|
+
|
|
197333
|
+
BindResult TableFunctionBinder::BindExpression(unique_ptr<ParsedExpression> *expr_ptr, idx_t depth,
|
|
197334
|
+
bool root_expression) {
|
|
197335
|
+
auto &expr = **expr_ptr;
|
|
197336
|
+
switch (expr.GetExpressionClass()) {
|
|
197337
|
+
case ExpressionClass::COLUMN_REF:
|
|
197338
|
+
return BindColumnReference((ColumnRefExpression &)expr);
|
|
197339
|
+
case ExpressionClass::SUBQUERY:
|
|
197340
|
+
throw BinderException("Table function cannot contain subqueries");
|
|
197341
|
+
case ExpressionClass::DEFAULT:
|
|
197342
|
+
return BindResult("Table function cannot contain DEFAULT clause");
|
|
197343
|
+
case ExpressionClass::WINDOW:
|
|
197344
|
+
return BindResult("Table function cannot contain window functions!");
|
|
197345
|
+
default:
|
|
197346
|
+
return ExpressionBinder::BindExpression(expr_ptr, depth);
|
|
197347
|
+
}
|
|
197348
|
+
}
|
|
197349
|
+
|
|
197350
|
+
string TableFunctionBinder::UnsupportedAggregateMessage() {
|
|
197351
|
+
return "Table function cannot contain aggregates!";
|
|
197352
|
+
}
|
|
197353
|
+
|
|
197354
|
+
} // namespace duckdb
|
|
197355
|
+
|
|
197356
|
+
|
|
197294
197357
|
namespace duckdb {
|
|
197295
197358
|
|
|
197296
197359
|
UpdateBinder::UpdateBinder(Binder &binder, ClientContext &context) : ExpressionBinder(binder, context) {
|
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.6.1-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "524e8754d6"
|
|
15
|
+
#define DUCKDB_VERSION "v0.6.1-dev133"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|