duckdb 0.3.2-dev597.0 → 0.3.2-dev633.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 +285 -576
- package/src/duckdb.hpp +15 -13
package/src/duckdb.hpp
CHANGED
|
@@ -10,8 +10,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
10
10
|
|
|
11
11
|
#pragma once
|
|
12
12
|
#define DUCKDB_AMALGAMATION 1
|
|
13
|
-
#define DUCKDB_SOURCE_ID "
|
|
14
|
-
#define DUCKDB_VERSION "0.3.2-
|
|
13
|
+
#define DUCKDB_SOURCE_ID "c07e22907"
|
|
14
|
+
#define DUCKDB_VERSION "0.3.2-dev633"
|
|
15
15
|
//===----------------------------------------------------------------------===//
|
|
16
16
|
// DuckDB
|
|
17
17
|
//
|
|
@@ -1034,6 +1034,8 @@ public:
|
|
|
1034
1034
|
static constexpr const LogicalTypeId TABLE = LogicalTypeId::TABLE;
|
|
1035
1035
|
static constexpr const LogicalTypeId INVALID = LogicalTypeId::INVALID;
|
|
1036
1036
|
|
|
1037
|
+
static constexpr const LogicalTypeId ROW_TYPE = LogicalTypeId::BIGINT;
|
|
1038
|
+
|
|
1037
1039
|
// explicitly allowing these functions to be capitalized to be in-line with the remaining functions
|
|
1038
1040
|
DUCKDB_API static LogicalType DECIMAL(int width, int scale); // NOLINT
|
|
1039
1041
|
DUCKDB_API static LogicalType VARCHAR_COLLATION(string collation); // NOLINT
|
|
@@ -1044,11 +1046,11 @@ public:
|
|
|
1044
1046
|
DUCKDB_API static LogicalType ENUM(const string &enum_name, Vector &ordered_data, idx_t size); // NOLINT
|
|
1045
1047
|
DUCKDB_API static LogicalType USER(const string &user_type_name); // NOLINT
|
|
1046
1048
|
//! A list of all NUMERIC types (integral and floating point types)
|
|
1047
|
-
DUCKDB_API static const vector<LogicalType>
|
|
1049
|
+
DUCKDB_API static const vector<LogicalType> Numeric();
|
|
1048
1050
|
//! A list of all INTEGRAL types
|
|
1049
|
-
DUCKDB_API static const vector<LogicalType>
|
|
1051
|
+
DUCKDB_API static const vector<LogicalType> Integral();
|
|
1050
1052
|
//! A list of ALL SQL types
|
|
1051
|
-
DUCKDB_API static const vector<LogicalType>
|
|
1053
|
+
DUCKDB_API static const vector<LogicalType> AllTypes();
|
|
1052
1054
|
};
|
|
1053
1055
|
|
|
1054
1056
|
struct DecimalType {
|
|
@@ -1144,7 +1146,6 @@ bool IsValidType() {
|
|
|
1144
1146
|
}
|
|
1145
1147
|
|
|
1146
1148
|
//! The PhysicalType used by the row identifiers column
|
|
1147
|
-
extern const LogicalType LOGICAL_ROW_TYPE;
|
|
1148
1149
|
extern const PhysicalType ROW_TYPE;
|
|
1149
1150
|
|
|
1150
1151
|
DUCKDB_API string TypeIdToString(PhysicalType type);
|
|
@@ -3492,11 +3493,11 @@ struct ConstantVector {
|
|
|
3492
3493
|
return vector.validity;
|
|
3493
3494
|
}
|
|
3494
3495
|
DUCKDB_API static const SelectionVector *ZeroSelectionVector(idx_t count, SelectionVector &owned_sel);
|
|
3496
|
+
DUCKDB_API static const SelectionVector *ZeroSelectionVector();
|
|
3495
3497
|
//! Turns "vector" into a constant vector by referencing a value within the source vector
|
|
3496
3498
|
DUCKDB_API static void Reference(Vector &vector, Vector &source, idx_t position, idx_t count);
|
|
3497
3499
|
|
|
3498
3500
|
static const sel_t ZERO_VECTOR[STANDARD_VECTOR_SIZE];
|
|
3499
|
-
static const SelectionVector ZERO_SELECTION_VECTOR;
|
|
3500
3501
|
};
|
|
3501
3502
|
|
|
3502
3503
|
struct DictionaryVector {
|
|
@@ -3556,9 +3557,8 @@ struct FlatVector {
|
|
|
3556
3557
|
D_ASSERT(vector.GetVectorType() == VectorType::FLAT_VECTOR);
|
|
3557
3558
|
return !vector.validity.RowIsValid(idx);
|
|
3558
3559
|
}
|
|
3559
|
-
|
|
3560
|
-
static const
|
|
3561
|
-
static const SelectionVector INCREMENTAL_SELECTION_VECTOR;
|
|
3560
|
+
DUCKDB_API static const SelectionVector *IncrementalSelectionVector(idx_t count, SelectionVector &owned_sel);
|
|
3561
|
+
DUCKDB_API static const SelectionVector *IncrementalSelectionVector();
|
|
3562
3562
|
};
|
|
3563
3563
|
|
|
3564
3564
|
struct ListVector {
|
|
@@ -4415,8 +4415,9 @@ public:
|
|
|
4415
4415
|
template <class LEFT_TYPE, class RIGHT_TYPE, class OP>
|
|
4416
4416
|
static idx_t Select(Vector &left, Vector &right, const SelectionVector *sel, idx_t count, SelectionVector *true_sel,
|
|
4417
4417
|
SelectionVector *false_sel) {
|
|
4418
|
+
SelectionVector owned_sel;
|
|
4418
4419
|
if (!sel) {
|
|
4419
|
-
sel =
|
|
4420
|
+
sel = FlatVector::IncrementalSelectionVector(count, owned_sel);
|
|
4420
4421
|
}
|
|
4421
4422
|
if (left.GetVectorType() == VectorType::CONSTANT_VECTOR &&
|
|
4422
4423
|
right.GetVectorType() == VectorType::CONSTANT_VECTOR) {
|
|
@@ -4585,8 +4586,9 @@ public:
|
|
|
4585
4586
|
template <class A_TYPE, class B_TYPE, class C_TYPE, class OP>
|
|
4586
4587
|
static idx_t Select(Vector &a, Vector &b, Vector &c, const SelectionVector *sel, idx_t count,
|
|
4587
4588
|
SelectionVector *true_sel, SelectionVector *false_sel) {
|
|
4589
|
+
SelectionVector owned_sel;
|
|
4588
4590
|
if (!sel) {
|
|
4589
|
-
sel =
|
|
4591
|
+
sel = FlatVector::IncrementalSelectionVector(count, owned_sel);
|
|
4590
4592
|
}
|
|
4591
4593
|
VectorData adata, bdata, cdata;
|
|
4592
4594
|
a.Orrify(count, adata);
|
|
@@ -10373,7 +10375,7 @@ public:
|
|
|
10373
10375
|
|
|
10374
10376
|
|
|
10375
10377
|
|
|
10376
|
-
#
|
|
10378
|
+
#if defined(DUCKDB_BUILD_LOADABLE_EXTENSION) && defined(DUCKDB_EXTENSION_MAIN)
|
|
10377
10379
|
#ifdef _WIN32
|
|
10378
10380
|
#ifndef NOMINMAX
|
|
10379
10381
|
#define NOMINMAX
|