duckdb 0.3.5-dev1226.0 → 0.3.5-dev1237.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/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 "21edbc1e1"
15
- #define DUCKDB_VERSION "v0.3.5-dev1226"
14
+ #define DUCKDB_SOURCE_ID "7f0a6e96c"
15
+ #define DUCKDB_VERSION "v0.3.5-dev1237"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -7360,6 +7360,18 @@ struct FunctionLocalState {
7360
7360
  class BoundFunctionExpression;
7361
7361
  class ScalarFunctionCatalogEntry;
7362
7362
 
7363
+ struct FunctionStatisticsInput {
7364
+ FunctionStatisticsInput(BoundFunctionExpression &expr_p, FunctionData *bind_data_p,
7365
+ vector<unique_ptr<BaseStatistics>> &child_stats_p, unique_ptr<Expression> *expr_ptr_p)
7366
+ : expr(expr_p), bind_data(bind_data_p), child_stats(child_stats_p), expr_ptr(expr_ptr_p) {
7367
+ }
7368
+
7369
+ BoundFunctionExpression &expr;
7370
+ FunctionData *bind_data;
7371
+ vector<unique_ptr<BaseStatistics>> &child_stats;
7372
+ unique_ptr<Expression> *expr_ptr;
7373
+ };
7374
+
7363
7375
  //! The type used for scalar functions
7364
7376
  typedef std::function<void(DataChunk &, ExpressionState &, Vector &)> scalar_function_t;
7365
7377
  //! Binds the scalar function and creates the function data
@@ -7367,9 +7379,7 @@ typedef unique_ptr<FunctionData> (*bind_scalar_function_t)(ClientContext &contex
7367
7379
  vector<unique_ptr<Expression>> &arguments);
7368
7380
  typedef unique_ptr<FunctionLocalState> (*init_local_state_t)(const BoundFunctionExpression &expr,
7369
7381
  FunctionData *bind_data);
7370
- typedef unique_ptr<BaseStatistics> (*function_statistics_t)(ClientContext &context, BoundFunctionExpression &expr,
7371
- FunctionData *bind_data,
7372
- vector<unique_ptr<BaseStatistics>> &child_stats);
7382
+ typedef unique_ptr<BaseStatistics> (*function_statistics_t)(ClientContext &context, FunctionStatisticsInput &input);
7373
7383
  //! Adds the dependencies of this BoundFunctionExpression to the set of dependencies
7374
7384
  typedef void (*dependency_function_t)(BoundFunctionExpression &expr, unordered_set<CatalogEntry *> &dependencies);
7375
7385