duckdb 0.3.3-dev901.0 → 0.3.3-dev933.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
- "version": "0.3.3-dev901.0",
4
+ "version": "0.3.3-dev933.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -53208,7 +53208,7 @@ private:
53208
53208
  };
53209
53209
 
53210
53210
  template <typename T, typename OP>
53211
- struct OperationCompare : public std::binary_function<T, T, bool> {
53211
+ struct OperationCompare : public std::function<bool(T, T)> {
53212
53212
  inline bool operator()(const T &lhs, const T &val) const {
53213
53213
  return OP::template Operation(lhs, val);
53214
53214
  }
@@ -120993,6 +120993,8 @@ private:
120993
120993
  unique_ptr<LogicalOperator> PushdownSetOperation(unique_ptr<LogicalOperator> op);
120994
120994
  //! Push down a LogicalGet op
120995
120995
  unique_ptr<LogicalOperator> PushdownGet(unique_ptr<LogicalOperator> op);
120996
+ //! Push down a LogicalLimit op
120997
+ unique_ptr<LogicalOperator> PushdownLimit(unique_ptr<LogicalOperator> op);
120996
120998
  // Pushdown an inner join
120997
120999
  unique_ptr<LogicalOperator> PushdownInnerJoin(unique_ptr<LogicalOperator> op, unordered_set<idx_t> &left_bindings,
120998
121000
  unordered_set<idx_t> &right_bindings);
@@ -121058,6 +121060,8 @@ unique_ptr<LogicalOperator> FilterPushdown::Rewrite(unique_ptr<LogicalOperator>
121058
121060
  }
121059
121061
  case LogicalOperatorType::LOGICAL_GET:
121060
121062
  return PushdownGet(move(op));
121063
+ case LogicalOperatorType::LOGICAL_LIMIT:
121064
+ return PushdownLimit(move(op));
121061
121065
  default:
121062
121066
  return FinishPushdown(move(op));
121063
121067
  }
@@ -123988,6 +123992,25 @@ unique_ptr<LogicalOperator> FilterPushdown::PushdownLeftJoin(unique_ptr<LogicalO
123988
123992
 
123989
123993
 
123990
123994
 
123995
+
123996
+
123997
+ namespace duckdb {
123998
+
123999
+ unique_ptr<LogicalOperator> FilterPushdown::PushdownLimit(unique_ptr<LogicalOperator> op) {
124000
+ auto &limit = (LogicalLimit &)*op;
124001
+
124002
+ if (!limit.limit && limit.limit_val == 0) {
124003
+ return make_unique<LogicalEmptyResult>(move(op));
124004
+ }
124005
+
124006
+ return FinishPushdown(move(op));
124007
+ }
124008
+
124009
+ } // namespace duckdb
124010
+
124011
+
124012
+
124013
+
123991
124014
  namespace duckdb {
123992
124015
 
123993
124016
  using Filter = FilterPushdown::Filter;
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 "9c88ae129"
15
- #define DUCKDB_VERSION "v0.3.3-dev901"
14
+ #define DUCKDB_SOURCE_ID "068bdbbe2"
15
+ #define DUCKDB_VERSION "v0.3.3-dev933"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //