duckdb 0.3.5-dev4.0 → 0.3.5-dev75.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 +665 -52
- package/src/duckdb.hpp +72 -5
- package/src/parquet-amalgamation.cpp +32184 -32184
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 "517ff64d6"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.5-dev75"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -15975,6 +15975,24 @@ This should not be used with `DUCKDB_TYPE_DECIMAL`.
|
|
|
15975
15975
|
*/
|
|
15976
15976
|
DUCKDB_API duckdb_logical_type duckdb_create_logical_type(duckdb_type type);
|
|
15977
15977
|
|
|
15978
|
+
/*!
|
|
15979
|
+
Creates a list type from its child type.
|
|
15980
|
+
The resulting type should be destroyed with `duckdb_destroy_logical_type`.
|
|
15981
|
+
|
|
15982
|
+
* type: The child type of list type to create.
|
|
15983
|
+
* returns: The logical type.
|
|
15984
|
+
*/
|
|
15985
|
+
DUCKDB_API duckdb_logical_type duckdb_create_list_type(duckdb_logical_type type);
|
|
15986
|
+
|
|
15987
|
+
/*!
|
|
15988
|
+
Creates a map type from its key type and value type.
|
|
15989
|
+
The resulting type should be destroyed with `duckdb_destroy_logical_type`.
|
|
15990
|
+
|
|
15991
|
+
* type: The key type and value type of map type to create.
|
|
15992
|
+
* returns: The logical type.
|
|
15993
|
+
*/
|
|
15994
|
+
DUCKDB_API duckdb_logical_type duckdb_create_map_type(duckdb_logical_type key_type, duckdb_logical_type value_type);
|
|
15995
|
+
|
|
15978
15996
|
/*!
|
|
15979
15997
|
Creates a `duckdb_logical_type` of type decimal with the specified width and scale
|
|
15980
15998
|
The resulting type should be destroyed with `duckdb_destroy_logical_type`.
|
|
@@ -16054,6 +16072,26 @@ The result must be freed with `duckdb_destroy_logical_type`
|
|
|
16054
16072
|
*/
|
|
16055
16073
|
DUCKDB_API duckdb_logical_type duckdb_list_type_child_type(duckdb_logical_type type);
|
|
16056
16074
|
|
|
16075
|
+
/*!
|
|
16076
|
+
Retrieves the key type of the given map type.
|
|
16077
|
+
|
|
16078
|
+
The result must be freed with `duckdb_destroy_logical_type`
|
|
16079
|
+
|
|
16080
|
+
* type: The logical type object
|
|
16081
|
+
* returns: The key type of the map type. Must be destroyed with `duckdb_destroy_logical_type`.
|
|
16082
|
+
*/
|
|
16083
|
+
DUCKDB_API duckdb_logical_type duckdb_map_type_key_type(duckdb_logical_type type);
|
|
16084
|
+
|
|
16085
|
+
/*!
|
|
16086
|
+
Retrieves the value type of the given map type.
|
|
16087
|
+
|
|
16088
|
+
The result must be freed with `duckdb_destroy_logical_type`
|
|
16089
|
+
|
|
16090
|
+
* type: The logical type object
|
|
16091
|
+
* returns: The value type of the map type. Must be destroyed with `duckdb_destroy_logical_type`.
|
|
16092
|
+
*/
|
|
16093
|
+
DUCKDB_API duckdb_logical_type duckdb_map_type_value_type(duckdb_logical_type type);
|
|
16094
|
+
|
|
16057
16095
|
/*!
|
|
16058
16096
|
Returns the number of children of a struct type.
|
|
16059
16097
|
|
|
@@ -17176,6 +17214,27 @@ public:
|
|
|
17176
17214
|
|
|
17177
17215
|
} // namespace duckdb
|
|
17178
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
|
|
17179
17238
|
|
|
17180
17239
|
namespace duckdb {
|
|
17181
17240
|
class Appender;
|
|
@@ -17217,6 +17276,8 @@ public:
|
|
|
17217
17276
|
TransactionContext transaction;
|
|
17218
17277
|
//! Whether or not the query is interrupted
|
|
17219
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;
|
|
17220
17281
|
|
|
17221
17282
|
unique_ptr<SchemaCatalogEntry> temporary_objects;
|
|
17222
17283
|
unordered_map<string, shared_ptr<PreparedStatementData>> prepared_statements;
|
|
@@ -17434,6 +17495,7 @@ private:
|
|
|
17434
17495
|
} // namespace duckdb
|
|
17435
17496
|
|
|
17436
17497
|
|
|
17498
|
+
|
|
17437
17499
|
#include <memory>
|
|
17438
17500
|
|
|
17439
17501
|
namespace duckdb {
|
|
@@ -17445,8 +17507,6 @@ class LogicalOperator;
|
|
|
17445
17507
|
class QueryNode;
|
|
17446
17508
|
class TableRef;
|
|
17447
17509
|
|
|
17448
|
-
class ExtraDependencies {};
|
|
17449
|
-
|
|
17450
17510
|
class Relation : public std::enable_shared_from_this<Relation> {
|
|
17451
17511
|
public:
|
|
17452
17512
|
DUCKDB_API Relation(const std::shared_ptr<ClientContext> &context, RelationType type)
|
|
@@ -17461,7 +17521,7 @@ public:
|
|
|
17461
17521
|
|
|
17462
17522
|
RelationType type;
|
|
17463
17523
|
|
|
17464
|
-
|
|
17524
|
+
shared_ptr<ExternalDependency> extra_dependencies;
|
|
17465
17525
|
|
|
17466
17526
|
public:
|
|
17467
17527
|
DUCKDB_API virtual const vector<ColumnDefinition> &Columns() = 0;
|
|
@@ -17561,6 +17621,7 @@ public:
|
|
|
17561
17621
|
DUCKDB_API virtual Relation *ChildRelation() {
|
|
17562
17622
|
return nullptr;
|
|
17563
17623
|
}
|
|
17624
|
+
DUCKDB_API vector<shared_ptr<ExternalDependency>> GetAllDependencies();
|
|
17564
17625
|
|
|
17565
17626
|
protected:
|
|
17566
17627
|
DUCKDB_API string RenderWhitespace(idx_t depth);
|
|
@@ -22042,6 +22103,8 @@ struct BufferedCSVReaderOptions {
|
|
|
22042
22103
|
bool has_header = false;
|
|
22043
22104
|
//! Whether or not the file has a header line
|
|
22044
22105
|
bool header = false;
|
|
22106
|
+
//! Whether or not we should ignore InvalidInput errors
|
|
22107
|
+
bool ignore_errors = false;
|
|
22045
22108
|
//! Whether or not header names shall be normalized
|
|
22046
22109
|
bool normalize_names = false;
|
|
22047
22110
|
//! How many leading rows to skip
|
|
@@ -22194,6 +22257,10 @@ private:
|
|
|
22194
22257
|
const vector<LogicalType> &requested_types,
|
|
22195
22258
|
vector<vector<LogicalType>> &best_sql_types_candidates,
|
|
22196
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;
|
|
22197
22264
|
};
|
|
22198
22265
|
|
|
22199
22266
|
} // namespace duckdb
|