duckdb 0.3.3-dev1217.0 → 0.3.3-dev1232.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 +307 -167
- package/src/duckdb.hpp +47 -4
- package/src/parquet-amalgamation.cpp +35703 -35703
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.3-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "041fb2cc7"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.3-dev1232"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -3412,7 +3412,7 @@ public:
|
|
|
3412
3412
|
return aux_data.get();
|
|
3413
3413
|
}
|
|
3414
3414
|
|
|
3415
|
-
void SetAuxiliaryData(unique_ptr<VectorAuxiliaryData> aux_data_p
|
|
3415
|
+
void SetAuxiliaryData(unique_ptr<VectorAuxiliaryData> aux_data_p) {
|
|
3416
3416
|
aux_data = move(aux_data_p);
|
|
3417
3417
|
}
|
|
3418
3418
|
|
|
@@ -15887,10 +15887,20 @@ The resulting type should be destroyed with `duckdb_destroy_logical_type`.
|
|
|
15887
15887
|
This should not be used with `DUCKDB_TYPE_DECIMAL`.
|
|
15888
15888
|
|
|
15889
15889
|
* type: The primitive type to create.
|
|
15890
|
-
* returns: The logical type
|
|
15890
|
+
* returns: The logical type.
|
|
15891
15891
|
*/
|
|
15892
15892
|
DUCKDB_API duckdb_logical_type duckdb_create_logical_type(duckdb_type type);
|
|
15893
15893
|
|
|
15894
|
+
/*!
|
|
15895
|
+
Creates a `duckdb_logical_type` of type decimal with the specified width and scale
|
|
15896
|
+
The resulting type should be destroyed with `duckdb_destroy_logical_type`.
|
|
15897
|
+
|
|
15898
|
+
* width: The width of the decimal type
|
|
15899
|
+
* scale: The scale of the decimal type
|
|
15900
|
+
* returns: The logical type.
|
|
15901
|
+
*/
|
|
15902
|
+
DUCKDB_API duckdb_logical_type duckdb_create_decimal_type(uint8_t width, uint8_t scale);
|
|
15903
|
+
|
|
15894
15904
|
/*!
|
|
15895
15905
|
Retrieves the type class of a `duckdb_logical_type`.
|
|
15896
15906
|
|
|
@@ -16287,6 +16297,18 @@ Sets the main function of the table function
|
|
|
16287
16297
|
DUCKDB_API void duckdb_table_function_set_function(duckdb_table_function table_function,
|
|
16288
16298
|
duckdb_table_function_t function);
|
|
16289
16299
|
|
|
16300
|
+
/*!
|
|
16301
|
+
Sets whether or not the given table function supports projection pushdown.
|
|
16302
|
+
|
|
16303
|
+
If this is set to true, the system will provide a list of all required columns in the `init` stage through
|
|
16304
|
+
the `duckdb_init_get_column_count` and `duckdb_init_get_column_index` functions.
|
|
16305
|
+
If this is set to false (the default), the system will expect all columns to be projected.
|
|
16306
|
+
|
|
16307
|
+
* table_function: The table function
|
|
16308
|
+
* pushdown: True if the table function supports projection pushdown, false otherwise.
|
|
16309
|
+
*/
|
|
16310
|
+
DUCKDB_API void duckdb_table_function_supports_projection_pushdown(duckdb_table_function table_function, bool pushdown);
|
|
16311
|
+
|
|
16290
16312
|
/*!
|
|
16291
16313
|
Register the table function object within the given connection.
|
|
16292
16314
|
|
|
@@ -16388,6 +16410,27 @@ Sets the user-provided init data in the init object. This object can be retrieve
|
|
|
16388
16410
|
*/
|
|
16389
16411
|
DUCKDB_API void duckdb_init_set_init_data(duckdb_init_info info, void *init_data, duckdb_delete_callback_t destroy);
|
|
16390
16412
|
|
|
16413
|
+
/*!
|
|
16414
|
+
Returns the number of projected columns.
|
|
16415
|
+
|
|
16416
|
+
This function must be used if projection pushdown is enabled to figure out which columns to emit.
|
|
16417
|
+
|
|
16418
|
+
* info: The info object
|
|
16419
|
+
* returns: The number of projected columns.
|
|
16420
|
+
*/
|
|
16421
|
+
DUCKDB_API idx_t duckdb_init_get_column_count(duckdb_init_info info);
|
|
16422
|
+
|
|
16423
|
+
/*!
|
|
16424
|
+
Returns the column index of the projected column at the specified position.
|
|
16425
|
+
|
|
16426
|
+
This function must be used if projection pushdown is enabled to figure out which columns to emit.
|
|
16427
|
+
|
|
16428
|
+
* info: The info object
|
|
16429
|
+
* column_index: The index at which to get the projected column index, from 0..duckdb_init_get_column_count(info)
|
|
16430
|
+
* returns: The column index of the projected column.
|
|
16431
|
+
*/
|
|
16432
|
+
DUCKDB_API idx_t duckdb_init_get_column_index(duckdb_init_info info, idx_t column_index);
|
|
16433
|
+
|
|
16391
16434
|
/*!
|
|
16392
16435
|
Report that an error has occurred while calling init.
|
|
16393
16436
|
|