duckdb 0.4.1-dev33.0 → 0.4.1-dev36.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 +5 -16
- package/src/duckdb.hpp +4 -4
- package/src/parquet-amalgamation.cpp +35873 -35873
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -39599,7 +39599,7 @@ unique_ptr<VectorData[]> DataChunk::Orrify() {
|
|
|
39599
39599
|
}
|
|
39600
39600
|
|
|
39601
39601
|
void DataChunk::Hash(Vector &result) {
|
|
39602
|
-
D_ASSERT(result.GetType().id() ==
|
|
39602
|
+
D_ASSERT(result.GetType().id() == LogicalType::HASH);
|
|
39603
39603
|
VectorOperations::Hash(data[0], result, size());
|
|
39604
39604
|
for (idx_t i = 1; i < ColumnCount(); i++) {
|
|
39605
39605
|
VectorOperations::CombineHash(result, data[i], size());
|
|
@@ -44706,8 +44706,6 @@ Value Value::Numeric(const LogicalType &type, int64_t value) {
|
|
|
44706
44706
|
return Value((float)value);
|
|
44707
44707
|
case LogicalTypeId::DOUBLE:
|
|
44708
44708
|
return Value((double)value);
|
|
44709
|
-
case LogicalTypeId::HASH:
|
|
44710
|
-
return Value::HASH(value);
|
|
44711
44709
|
case LogicalTypeId::POINTER:
|
|
44712
44710
|
return Value::POINTER(value);
|
|
44713
44711
|
case LogicalTypeId::DATE:
|
|
@@ -45098,8 +45096,6 @@ string Value::ToString() const {
|
|
|
45098
45096
|
return Blob::ToString(string_t(str_value));
|
|
45099
45097
|
case LogicalTypeId::POINTER:
|
|
45100
45098
|
return to_string(value_.pointer);
|
|
45101
|
-
case LogicalTypeId::HASH:
|
|
45102
|
-
return to_string(value_.hash);
|
|
45103
45099
|
case LogicalTypeId::STRUCT: {
|
|
45104
45100
|
string ret = "{";
|
|
45105
45101
|
auto &child_types = StructType::GetChildTypes(type_);
|
|
@@ -46218,8 +46214,6 @@ Value Vector::GetValue(const Vector &v_p, idx_t index_p) {
|
|
|
46218
46214
|
throw InternalException("ENUM can only have unsigned integers as physical types");
|
|
46219
46215
|
}
|
|
46220
46216
|
}
|
|
46221
|
-
case LogicalTypeId::HASH:
|
|
46222
|
-
return Value::HASH(((hash_t *)data)[index]);
|
|
46223
46217
|
case LogicalTypeId::POINTER:
|
|
46224
46218
|
return Value::POINTER(((uintptr_t *)data)[index]);
|
|
46225
46219
|
case LogicalTypeId::FLOAT:
|
|
@@ -47611,9 +47605,6 @@ PhysicalType LogicalType::GetInternalType() {
|
|
|
47611
47605
|
return PhysicalType::STRUCT;
|
|
47612
47606
|
case LogicalTypeId::LIST:
|
|
47613
47607
|
return PhysicalType::LIST;
|
|
47614
|
-
case LogicalTypeId::HASH:
|
|
47615
|
-
static_assert(sizeof(hash_t) == sizeof(uint64_t), "Hash must be uint64_t");
|
|
47616
|
-
return PhysicalType::UINT64;
|
|
47617
47608
|
case LogicalTypeId::POINTER:
|
|
47618
47609
|
// LCOV_EXCL_START
|
|
47619
47610
|
if (sizeof(uintptr_t) == sizeof(uint32_t)) {
|
|
@@ -47922,8 +47913,6 @@ string LogicalTypeIdToString(LogicalTypeId id) {
|
|
|
47922
47913
|
return "LIST";
|
|
47923
47914
|
case LogicalTypeId::MAP:
|
|
47924
47915
|
return "MAP";
|
|
47925
|
-
case LogicalTypeId::HASH:
|
|
47926
|
-
return "HASH";
|
|
47927
47916
|
case LogicalTypeId::POINTER:
|
|
47928
47917
|
return "POINTER";
|
|
47929
47918
|
case LogicalTypeId::TABLE:
|
|
@@ -52564,7 +52553,7 @@ static inline void ListLoopHash(Vector &input, Vector &hashes, const SelectionVe
|
|
|
52564
52553
|
|
|
52565
52554
|
template <bool HAS_RSEL>
|
|
52566
52555
|
static inline void HashTypeSwitch(Vector &input, Vector &result, const SelectionVector *rsel, idx_t count) {
|
|
52567
|
-
D_ASSERT(result.GetType().id() ==
|
|
52556
|
+
D_ASSERT(result.GetType().id() == LogicalType::HASH);
|
|
52568
52557
|
switch (input.GetType().InternalType()) {
|
|
52569
52558
|
case PhysicalType::BOOL:
|
|
52570
52559
|
case PhysicalType::INT8:
|
|
@@ -52696,7 +52685,7 @@ void TemplatedLoopCombineHash(Vector &input, Vector &hashes, const SelectionVect
|
|
|
52696
52685
|
|
|
52697
52686
|
template <bool HAS_RSEL>
|
|
52698
52687
|
static inline void CombineHashTypeSwitch(Vector &hashes, Vector &input, const SelectionVector *rsel, idx_t count) {
|
|
52699
|
-
D_ASSERT(hashes.GetType().id() ==
|
|
52688
|
+
D_ASSERT(hashes.GetType().id() == LogicalType::HASH);
|
|
52700
52689
|
switch (input.GetType().InternalType()) {
|
|
52701
52690
|
case PhysicalType::BOOL:
|
|
52702
52691
|
case PhysicalType::INT8:
|
|
@@ -57647,7 +57636,7 @@ void JoinHashTable::Build(DataChunk &keys, DataChunk &payload) {
|
|
|
57647
57636
|
}
|
|
57648
57637
|
|
|
57649
57638
|
void JoinHashTable::InsertHashes(Vector &hashes, idx_t count, data_ptr_t key_locations[]) {
|
|
57650
|
-
D_ASSERT(hashes.GetType().id() ==
|
|
57639
|
+
D_ASSERT(hashes.GetType().id() == LogicalType::HASH);
|
|
57651
57640
|
|
|
57652
57641
|
// use bitmask to get position in array
|
|
57653
57642
|
ApplyBitmask(hashes, count);
|
|
@@ -60326,7 +60315,7 @@ static void ScanSortedPartition(WindowOperatorState &state, ChunkCollection &inp
|
|
|
60326
60315
|
}
|
|
60327
60316
|
|
|
60328
60317
|
static void HashChunk(counts_t &counts, DataChunk &hash_chunk, DataChunk &sort_chunk, const idx_t partition_cols) {
|
|
60329
|
-
const vector<LogicalType> hash_types(1,
|
|
60318
|
+
const vector<LogicalType> hash_types(1, LogicalType::HASH);
|
|
60330
60319
|
hash_chunk.Initialize(hash_types);
|
|
60331
60320
|
hash_chunk.SetCardinality(sort_chunk);
|
|
60332
60321
|
auto &hash_vector = hash_chunk.data[0];
|
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 "530a5f55c"
|
|
15
|
+
#define DUCKDB_VERSION "v0.4.1-dev36"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -983,7 +983,7 @@ enum class LogicalTypeId : uint8_t {
|
|
|
983
983
|
|
|
984
984
|
HUGEINT = 50,
|
|
985
985
|
POINTER = 51,
|
|
986
|
-
HASH = 52,
|
|
986
|
+
// HASH = 52, // deprecated, uses UBIGINT instead
|
|
987
987
|
VALIDITY = 53,
|
|
988
988
|
UUID = 54,
|
|
989
989
|
|
|
@@ -1095,7 +1095,7 @@ public:
|
|
|
1095
1095
|
static constexpr const LogicalTypeId INTERVAL = LogicalTypeId::INTERVAL;
|
|
1096
1096
|
static constexpr const LogicalTypeId HUGEINT = LogicalTypeId::HUGEINT;
|
|
1097
1097
|
static constexpr const LogicalTypeId UUID = LogicalTypeId::UUID;
|
|
1098
|
-
static constexpr const LogicalTypeId HASH = LogicalTypeId::
|
|
1098
|
+
static constexpr const LogicalTypeId HASH = LogicalTypeId::UBIGINT;
|
|
1099
1099
|
static constexpr const LogicalTypeId POINTER = LogicalTypeId::POINTER;
|
|
1100
1100
|
static constexpr const LogicalTypeId TABLE = LogicalTypeId::TABLE;
|
|
1101
1101
|
static constexpr const LogicalTypeId INVALID = LogicalTypeId::INVALID;
|