duckdb 0.6.1-dev10.0 → 0.6.1-dev15.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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.6.1-dev10.0",
5
+ "version": "0.6.1-dev15.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -155444,7 +155444,6 @@ unique_ptr<LogicalOperator> FilterPullup::PullupJoin(unique_ptr<LogicalOperator>
155444
155444
  case JoinType::LEFT:
155445
155445
  case JoinType::ANTI:
155446
155446
  case JoinType::SEMI: {
155447
- can_add_column = true;
155448
155447
  return PullupFromLeft(move(op));
155449
155448
  }
155450
155449
  default:
@@ -157982,6 +157981,8 @@ unique_ptr<LogicalOperator> FilterPullup::PullupBothSide(unique_ptr<LogicalOpera
157982
157981
  FilterPullup right_pullup(true, can_add_column);
157983
157982
  op->children[0] = left_pullup.Rewrite(move(op->children[0]));
157984
157983
  op->children[1] = right_pullup.Rewrite(move(op->children[1]));
157984
+ D_ASSERT(left_pullup.can_add_column == can_add_column);
157985
+ D_ASSERT(right_pullup.can_add_column == can_add_column);
157985
157986
 
157986
157987
  // merging filter expressions
157987
157988
  for (idx_t i = 0; i < right_pullup.filters_expr_pullup.size(); ++i) {
@@ -158764,6 +158765,9 @@ unique_ptr<LogicalOperator> FilterPushdown::PushdownSetOperation(unique_ptr<Logi
158764
158765
  D_ASSERT(op->children.size() == 2);
158765
158766
  auto left_bindings = op->children[0]->GetColumnBindings();
158766
158767
  auto right_bindings = op->children[1]->GetColumnBindings();
158768
+ if (left_bindings.size() != right_bindings.size()) {
158769
+ throw InternalException("Filter pushdown - set operation LHS and RHS have incompatible counts");
158770
+ }
158767
158771
 
158768
158772
  // pushdown into set operation, we can duplicate the condition and pushdown the expressions into both sides
158769
158773
  FilterPushdown left_pushdown(optimizer), right_pushdown(optimizer);
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 "9479be7669"
15
- #define DUCKDB_VERSION "v0.6.1-dev10"
14
+ #define DUCKDB_SOURCE_ID "d5002251e4"
15
+ #define DUCKDB_VERSION "v0.6.1-dev15"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -19440,6 +19440,8 @@ DUCKDB_API const char *duckdb_result_error(duckdb_result *result);
19440
19440
  /*!
19441
19441
  Fetches a data chunk from the duckdb_result. This function should be called repeatedly until the result is exhausted.
19442
19442
 
19443
+ The result must be destroyed with `duckdb_destroy_data_chunk`.
19444
+
19443
19445
  This function supersedes all `duckdb_value` functions, as well as the `duckdb_column_data` and `duckdb_nullmask_data`
19444
19446
  functions. It results in significantly better performance, and should be preferred in newer code-bases.
19445
19447