duckdb 0.5.2-dev664.0 → 0.5.2-dev667.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.5.2-dev664.0",
4
+ "version": "0.5.2-dev667.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -189785,6 +189785,22 @@ unique_ptr<LogicalOperator> LogicalOperator::Deserialize(Deserializer &deseriali
189785
189785
  return result;
189786
189786
  }
189787
189787
 
189788
+ unique_ptr<LogicalOperator> LogicalOperator::Copy(ClientContext &context) const {
189789
+ BufferedSerializer logical_op_serializer;
189790
+ try {
189791
+ this->Serialize(logical_op_serializer);
189792
+ } catch (NotImplementedException &ex) {
189793
+ throw NotImplementedException("Logical Operator Copy requires the logical operator and all of its children to "
189794
+ "be serializable: " +
189795
+ std::string(ex.what()));
189796
+ }
189797
+ auto data = logical_op_serializer.GetData();
189798
+ auto logical_op_deserializer = BufferedDeserializer(data.data.get(), data.size);
189799
+ PlanDeserializationState state(context);
189800
+ auto op_copy = LogicalOperator::Deserialize(logical_op_deserializer, state);
189801
+ return op_copy;
189802
+ }
189803
+
189788
189804
  } // namespace duckdb
189789
189805
 
189790
189806
 
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 "a22481a18"
15
- #define DUCKDB_VERSION "v0.5.2-dev664"
14
+ #define DUCKDB_SOURCE_ID "064466a3a"
15
+ #define DUCKDB_VERSION "v0.5.2-dev667"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -10175,6 +10175,8 @@ public:
10175
10175
 
10176
10176
  static unique_ptr<LogicalOperator> Deserialize(Deserializer &deserializer, PlanDeserializationState &state);
10177
10177
 
10178
+ virtual unique_ptr<LogicalOperator> Copy(ClientContext &context) const;
10179
+
10178
10180
  virtual bool RequireOptimizer() const {
10179
10181
  return true;
10180
10182
  }