duckdb 0.3.5-dev8.0 → 0.3.5-dev90.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 +1213 -843
- package/src/duckdb.hpp +34 -5
- package/src/parquet-amalgamation.cpp +36841 -36841
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 "41227aabd"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.5-dev90"
|
|
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);
|
|
@@ -22080,6 +22103,8 @@ struct BufferedCSVReaderOptions {
|
|
|
22080
22103
|
bool has_header = false;
|
|
22081
22104
|
//! Whether or not the file has a header line
|
|
22082
22105
|
bool header = false;
|
|
22106
|
+
//! Whether or not we should ignore InvalidInput errors
|
|
22107
|
+
bool ignore_errors = false;
|
|
22083
22108
|
//! Whether or not header names shall be normalized
|
|
22084
22109
|
bool normalize_names = false;
|
|
22085
22110
|
//! How many leading rows to skip
|
|
@@ -22232,6 +22257,10 @@ private:
|
|
|
22232
22257
|
const vector<LogicalType> &requested_types,
|
|
22233
22258
|
vector<vector<LogicalType>> &best_sql_types_candidates,
|
|
22234
22259
|
map<LogicalTypeId, vector<string>> &best_format_candidates);
|
|
22260
|
+
|
|
22261
|
+
private:
|
|
22262
|
+
//! Whether or not the current row's columns have overflown sql_types.size()
|
|
22263
|
+
bool error_column_overflow = false;
|
|
22235
22264
|
};
|
|
22236
22265
|
|
|
22237
22266
|
} // namespace duckdb
|