duckdb 0.3.2-dev934.0 → 0.3.2-dev955.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 +26 -5
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +35782 -35782
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -19364,14 +19364,14 @@ static bool IntegerCastLoop(const char *buf, idx_t len, T &result, bool strict)
|
|
|
19364
19364
|
if (pos >= len) {
|
|
19365
19365
|
return false;
|
|
19366
19366
|
}
|
|
19367
|
-
|
|
19367
|
+
int32_t exponent = 0;
|
|
19368
19368
|
int negative = buf[pos] == '-';
|
|
19369
19369
|
if (negative) {
|
|
19370
|
-
if (!IntegerCastLoop<
|
|
19370
|
+
if (!IntegerCastLoop<int32_t, true, false>(buf + pos, len - pos, exponent, strict)) {
|
|
19371
19371
|
return false;
|
|
19372
19372
|
}
|
|
19373
19373
|
} else {
|
|
19374
|
-
if (!IntegerCastLoop<
|
|
19374
|
+
if (!IntegerCastLoop<int32_t, false, false>(buf + pos, len - pos, exponent, strict)) {
|
|
19375
19375
|
return false;
|
|
19376
19376
|
}
|
|
19377
19377
|
}
|
|
@@ -135765,7 +135765,17 @@ unique_ptr<ResultModifier> OrderModifier::Copy() {
|
|
|
135765
135765
|
|
|
135766
135766
|
string OrderByNode::ToString() const {
|
|
135767
135767
|
auto str = expression->ToString();
|
|
135768
|
-
|
|
135768
|
+
switch (type) {
|
|
135769
|
+
case OrderType::ASCENDING:
|
|
135770
|
+
str += " ASC";
|
|
135771
|
+
break;
|
|
135772
|
+
case OrderType::DESCENDING:
|
|
135773
|
+
str += " DESC";
|
|
135774
|
+
break;
|
|
135775
|
+
default:
|
|
135776
|
+
break;
|
|
135777
|
+
}
|
|
135778
|
+
|
|
135769
135779
|
switch (null_order) {
|
|
135770
135780
|
case OrderByNullType::NULLS_FIRST:
|
|
135771
135781
|
str += " NULLS FIRST";
|
|
@@ -139151,6 +139161,7 @@ void Transformer::AddGroupByExpression(unique_ptr<ParsedExpression> expression,
|
|
|
139151
139161
|
|
|
139152
139162
|
static void AddCubeSets(const GroupingSet ¤t_set, vector<GroupingSet> &result_set,
|
|
139153
139163
|
vector<GroupingSet> &result_sets, idx_t start_idx = 0) {
|
|
139164
|
+
CheckGroupingSetMax(result_sets.size());
|
|
139154
139165
|
result_sets.push_back(current_set);
|
|
139155
139166
|
for (idx_t k = start_idx; k < result_set.size(); k++) {
|
|
139156
139167
|
auto child_set = current_set;
|
|
@@ -139373,6 +139384,8 @@ LogicalType Transformer::TransformTypeName(duckdb_libpgquery::PGTypeName *type_n
|
|
|
139373
139384
|
if (type_name->type != duckdb_libpgquery::T_PGTypeName) {
|
|
139374
139385
|
throw ParserException("Expected a type");
|
|
139375
139386
|
}
|
|
139387
|
+
auto stack_checker = StackCheck();
|
|
139388
|
+
|
|
139376
139389
|
auto name = (reinterpret_cast<duckdb_libpgquery::PGValue *>(type_name->names->tail->data.ptr_value)->val.str);
|
|
139377
139390
|
// transform it to the SQL type
|
|
139378
139391
|
LogicalTypeId base_type = TransformStringToLogicalType(name);
|
|
@@ -139501,8 +139514,10 @@ LogicalType Transformer::TransformTypeName(duckdb_libpgquery::PGTypeName *type_n
|
|
|
139501
139514
|
}
|
|
139502
139515
|
if (type_name->arrayBounds) {
|
|
139503
139516
|
// array bounds: turn the type into a list
|
|
139517
|
+
idx_t extra_stack = 0;
|
|
139504
139518
|
for (auto cell = type_name->arrayBounds->head; cell != nullptr; cell = cell->next) {
|
|
139505
139519
|
result_type = LogicalType::LIST(move(result_type));
|
|
139520
|
+
StackCheck(extra_stack++);
|
|
139506
139521
|
}
|
|
139507
139522
|
}
|
|
139508
139523
|
return result_type;
|
|
@@ -139738,8 +139753,14 @@ unique_ptr<CopyStatement> Transformer::TransformCopy(duckdb_libpgquery::PGNode *
|
|
|
139738
139753
|
auto &info = *result->info;
|
|
139739
139754
|
|
|
139740
139755
|
// get file_path and is_from
|
|
139741
|
-
info.file_path = stmt->filename;
|
|
139742
139756
|
info.is_from = stmt->is_from;
|
|
139757
|
+
if (!stmt->filename) {
|
|
139758
|
+
// stdin/stdout
|
|
139759
|
+
info.file_path = info.is_from ? "/dev/stdin" : "/dev/stdout";
|
|
139760
|
+
} else {
|
|
139761
|
+
// copy to a file
|
|
139762
|
+
info.file_path = stmt->filename;
|
|
139763
|
+
}
|
|
139743
139764
|
if (StringUtil::EndsWith(info.file_path, ".parquet")) {
|
|
139744
139765
|
info.format = "parquet";
|
|
139745
139766
|
} else {
|
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 "0.3.2-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "0fead7880"
|
|
15
|
+
#define DUCKDB_VERSION "0.3.2-dev955"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|