duckdb 0.3.5-dev960.0 → 0.3.5-dev962.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 +8 -11
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +36783 -36783
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -41350,26 +41350,23 @@ hugeint_t hugeint_t::operator-() const {
|
|
|
41350
41350
|
}
|
|
41351
41351
|
|
|
41352
41352
|
hugeint_t hugeint_t::operator>>(const hugeint_t &rhs) const {
|
|
41353
|
-
if (upper < 0) {
|
|
41354
|
-
return hugeint_t(0);
|
|
41355
|
-
}
|
|
41356
41353
|
hugeint_t result;
|
|
41357
41354
|
uint64_t shift = rhs.lower;
|
|
41358
41355
|
if (rhs.upper != 0 || shift >= 128) {
|
|
41359
41356
|
return hugeint_t(0);
|
|
41360
|
-
} else if (shift == 64) {
|
|
41361
|
-
result.upper = 0;
|
|
41362
|
-
result.lower = upper;
|
|
41363
41357
|
} else if (shift == 0) {
|
|
41364
41358
|
return *this;
|
|
41359
|
+
} else if (shift == 64) {
|
|
41360
|
+
result.upper = (upper < 0) ? -1 : 0;
|
|
41361
|
+
result.lower = upper;
|
|
41365
41362
|
} else if (shift < 64) {
|
|
41366
|
-
// perform
|
|
41367
|
-
result.lower = (uint64_t(upper) << (64 - shift))
|
|
41368
|
-
result.upper =
|
|
41363
|
+
// perform lower shift in unsigned integer, and mask away the most significant bit
|
|
41364
|
+
result.lower = (uint64_t(upper) << (64 - shift)) | (lower >> shift);
|
|
41365
|
+
result.upper = upper >> shift;
|
|
41369
41366
|
} else {
|
|
41370
41367
|
D_ASSERT(shift < 128);
|
|
41371
|
-
result.lower =
|
|
41372
|
-
result.upper = 0;
|
|
41368
|
+
result.lower = upper >> (shift - 64);
|
|
41369
|
+
result.upper = (upper < 0) ? -1 : 0;
|
|
41373
41370
|
}
|
|
41374
41371
|
return result;
|
|
41375
41372
|
}
|
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.5-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "ad0a90309"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.5-dev962"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|