duckdb 0.4.1-dev723.0 → 0.4.1-dev746.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 +230 -124
- package/src/duckdb.hpp +16 -9
- package/src/parquet-amalgamation.cpp +34673 -34673
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.4.1-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "4780fcd3e"
|
|
15
|
+
#define DUCKDB_VERSION "v0.4.1-dev746"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -7120,6 +7120,9 @@ public:
|
|
|
7120
7120
|
}
|
|
7121
7121
|
|
|
7122
7122
|
static void NegateInPlace(hugeint_t &input) {
|
|
7123
|
+
if (input.upper == NumericLimits<int64_t>::Minimum() && input.lower == 0) {
|
|
7124
|
+
throw OutOfRangeException("HUGEINT is out of range");
|
|
7125
|
+
}
|
|
7123
7126
|
input.lower = NumericLimits<uint64_t>::Maximum() - input.lower + 1;
|
|
7124
7127
|
input.upper = -1 - input.upper + (input.lower == 0);
|
|
7125
7128
|
}
|
|
@@ -12275,6 +12278,8 @@ struct AlterInfo : public ParseInfo {
|
|
|
12275
12278
|
~AlterInfo() override;
|
|
12276
12279
|
|
|
12277
12280
|
AlterType type;
|
|
12281
|
+
//! if exists
|
|
12282
|
+
bool if_exists;
|
|
12278
12283
|
//! Schema name to alter
|
|
12279
12284
|
string schema;
|
|
12280
12285
|
//! Entry name to alter
|
|
@@ -19466,10 +19471,10 @@ public:
|
|
|
19466
19471
|
static constexpr uint8_t MAX_WIDTH_DECIMAL = MAX_WIDTH_INT128;
|
|
19467
19472
|
|
|
19468
19473
|
public:
|
|
19469
|
-
static string ToString(int16_t value, uint8_t scale);
|
|
19470
|
-
static string ToString(int32_t value, uint8_t scale);
|
|
19471
|
-
static string ToString(int64_t value, uint8_t scale);
|
|
19472
|
-
static string ToString(hugeint_t value, uint8_t scale);
|
|
19474
|
+
static string ToString(int16_t value, uint8_t width, uint8_t scale);
|
|
19475
|
+
static string ToString(int32_t value, uint8_t width, uint8_t scale);
|
|
19476
|
+
static string ToString(int64_t value, uint8_t width, uint8_t scale);
|
|
19477
|
+
static string ToString(hugeint_t value, uint8_t width, uint8_t scale);
|
|
19473
19478
|
};
|
|
19474
19479
|
} // namespace duckdb
|
|
19475
19480
|
//===----------------------------------------------------------------------===//
|
|
@@ -20965,7 +20970,7 @@ public:
|
|
|
20965
20970
|
//! Execute the expression with index `expr_idx` and store the result in the result vector
|
|
20966
20971
|
DUCKDB_API void ExecuteExpression(idx_t expr_idx, Vector &result);
|
|
20967
20972
|
//! Evaluate a scalar expression and fold it into a single value
|
|
20968
|
-
DUCKDB_API static Value EvaluateScalar(const Expression &expr);
|
|
20973
|
+
DUCKDB_API static Value EvaluateScalar(const Expression &expr, bool allow_unfoldable = false);
|
|
20969
20974
|
//! Try to evaluate a scalar expression and fold it into a single value, returns false if an exception is thrown
|
|
20970
20975
|
DUCKDB_API static bool TryEvaluateScalar(const Expression &expr, Value &result);
|
|
20971
20976
|
|
|
@@ -25500,6 +25505,7 @@ public:
|
|
|
25500
25505
|
} // namespace duckdb
|
|
25501
25506
|
|
|
25502
25507
|
|
|
25508
|
+
|
|
25503
25509
|
namespace duckdb {
|
|
25504
25510
|
|
|
25505
25511
|
struct VacuumOptions {
|
|
@@ -25509,7 +25515,7 @@ struct VacuumOptions {
|
|
|
25509
25515
|
|
|
25510
25516
|
struct VacuumInfo : public ParseInfo {
|
|
25511
25517
|
public:
|
|
25512
|
-
explicit VacuumInfo(VacuumOptions options) : options(options), has_table(false) {};
|
|
25518
|
+
explicit VacuumInfo(VacuumOptions options) : options(options), has_table(false), table(nullptr) {};
|
|
25513
25519
|
|
|
25514
25520
|
unique_ptr<VacuumInfo> Copy() {
|
|
25515
25521
|
auto result = make_unique<VacuumInfo>(options);
|
|
@@ -25525,7 +25531,8 @@ public:
|
|
|
25525
25531
|
public:
|
|
25526
25532
|
bool has_table;
|
|
25527
25533
|
unique_ptr<TableRef> ref;
|
|
25528
|
-
|
|
25534
|
+
TableCatalogEntry *table;
|
|
25535
|
+
unordered_map<idx_t, idx_t> column_id_map;
|
|
25529
25536
|
vector<string> columns;
|
|
25530
25537
|
};
|
|
25531
25538
|
|