duckdb 0.3.5-dev46.0 → 0.3.5-dev54.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 +12 -0
- package/src/duckdb.hpp +28 -5
- package/src/parquet-amalgamation.cpp +32362 -32362
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -122242,6 +122242,18 @@ string Relation::RenderWhitespace(idx_t depth) {
|
|
|
122242
122242
|
return string(depth * 2, ' ');
|
|
122243
122243
|
}
|
|
122244
122244
|
|
|
122245
|
+
vector<shared_ptr<ExternalDependency>> Relation::GetAllDependencies() {
|
|
122246
|
+
vector<shared_ptr<ExternalDependency>> all_dependencies;
|
|
122247
|
+
Relation *cur = this;
|
|
122248
|
+
while (cur) {
|
|
122249
|
+
if (cur->extra_dependencies) {
|
|
122250
|
+
all_dependencies.push_back(cur->extra_dependencies);
|
|
122251
|
+
}
|
|
122252
|
+
cur = ChildRelation();
|
|
122253
|
+
}
|
|
122254
|
+
return all_dependencies;
|
|
122255
|
+
}
|
|
122256
|
+
|
|
122245
122257
|
} // namespace duckdb
|
|
122246
122258
|
|
|
122247
122259
|
|
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.3.5-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "c8e258878"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.5-dev54"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -17214,6 +17214,27 @@ public:
|
|
|
17214
17214
|
|
|
17215
17215
|
} // namespace duckdb
|
|
17216
17216
|
|
|
17217
|
+
//===----------------------------------------------------------------------===//
|
|
17218
|
+
// DuckDB
|
|
17219
|
+
//
|
|
17220
|
+
// duckdb/main/external_dependencies.hpp
|
|
17221
|
+
//
|
|
17222
|
+
//
|
|
17223
|
+
//===----------------------------------------------------------------------===//
|
|
17224
|
+
|
|
17225
|
+
|
|
17226
|
+
|
|
17227
|
+
namespace duckdb {
|
|
17228
|
+
|
|
17229
|
+
enum ExternalDependenciesType { PYTHON_DEPENDENCY };
|
|
17230
|
+
class ExternalDependency {
|
|
17231
|
+
public:
|
|
17232
|
+
explicit ExternalDependency(ExternalDependenciesType type_p) : type(type_p) {};
|
|
17233
|
+
virtual ~ExternalDependency() {};
|
|
17234
|
+
ExternalDependenciesType type;
|
|
17235
|
+
};
|
|
17236
|
+
|
|
17237
|
+
} // namespace duckdb
|
|
17217
17238
|
|
|
17218
17239
|
namespace duckdb {
|
|
17219
17240
|
class Appender;
|
|
@@ -17255,6 +17276,8 @@ public:
|
|
|
17255
17276
|
TransactionContext transaction;
|
|
17256
17277
|
//! Whether or not the query is interrupted
|
|
17257
17278
|
atomic<bool> interrupted;
|
|
17279
|
+
//! External Objects (e.g., Python objects) that views depend of
|
|
17280
|
+
unordered_map<string, vector<shared_ptr<ExternalDependency>>> external_dependencies;
|
|
17258
17281
|
|
|
17259
17282
|
unique_ptr<SchemaCatalogEntry> temporary_objects;
|
|
17260
17283
|
unordered_map<string, shared_ptr<PreparedStatementData>> prepared_statements;
|
|
@@ -17472,6 +17495,7 @@ private:
|
|
|
17472
17495
|
} // namespace duckdb
|
|
17473
17496
|
|
|
17474
17497
|
|
|
17498
|
+
|
|
17475
17499
|
#include <memory>
|
|
17476
17500
|
|
|
17477
17501
|
namespace duckdb {
|
|
@@ -17483,8 +17507,6 @@ class LogicalOperator;
|
|
|
17483
17507
|
class QueryNode;
|
|
17484
17508
|
class TableRef;
|
|
17485
17509
|
|
|
17486
|
-
class ExtraDependencies {};
|
|
17487
|
-
|
|
17488
17510
|
class Relation : public std::enable_shared_from_this<Relation> {
|
|
17489
17511
|
public:
|
|
17490
17512
|
DUCKDB_API Relation(const std::shared_ptr<ClientContext> &context, RelationType type)
|
|
@@ -17499,7 +17521,7 @@ public:
|
|
|
17499
17521
|
|
|
17500
17522
|
RelationType type;
|
|
17501
17523
|
|
|
17502
|
-
|
|
17524
|
+
shared_ptr<ExternalDependency> extra_dependencies;
|
|
17503
17525
|
|
|
17504
17526
|
public:
|
|
17505
17527
|
DUCKDB_API virtual const vector<ColumnDefinition> &Columns() = 0;
|
|
@@ -17599,6 +17621,7 @@ public:
|
|
|
17599
17621
|
DUCKDB_API virtual Relation *ChildRelation() {
|
|
17600
17622
|
return nullptr;
|
|
17601
17623
|
}
|
|
17624
|
+
DUCKDB_API vector<shared_ptr<ExternalDependency>> GetAllDependencies();
|
|
17602
17625
|
|
|
17603
17626
|
protected:
|
|
17604
17627
|
DUCKDB_API string RenderWhitespace(idx_t depth);
|