duckdb 0.4.1-dev1956.0 → 0.4.1-dev1961.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 +20 -2
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +31697 -31697
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -103284,8 +103284,24 @@ struct BitCntOperator {
|
|
|
103284
103284
|
static inline TR Operation(TA input) {
|
|
103285
103285
|
using TU = typename std::make_unsigned<TA>::type;
|
|
103286
103286
|
TR count = 0;
|
|
103287
|
-
for (auto value = TU(input); value
|
|
103288
|
-
|
|
103287
|
+
for (auto value = TU(input); value; ++count) {
|
|
103288
|
+
value &= (value - 1);
|
|
103289
|
+
}
|
|
103290
|
+
return count;
|
|
103291
|
+
}
|
|
103292
|
+
};
|
|
103293
|
+
|
|
103294
|
+
struct HugeIntBitCntOperator {
|
|
103295
|
+
template <class TA, class TR>
|
|
103296
|
+
static inline TR Operation(TA input) {
|
|
103297
|
+
using TU = typename std::make_unsigned<int64_t>::type;
|
|
103298
|
+
TR count = 0;
|
|
103299
|
+
|
|
103300
|
+
for (auto value = TU(input.upper); value; ++count) {
|
|
103301
|
+
value &= (value - 1);
|
|
103302
|
+
}
|
|
103303
|
+
for (auto value = TU(input.lower); value; ++count) {
|
|
103304
|
+
value &= (value - 1);
|
|
103289
103305
|
}
|
|
103290
103306
|
return count;
|
|
103291
103307
|
}
|
|
@@ -103301,6 +103317,8 @@ void BitCountFun::RegisterFunction(BuiltinFunctions &set) {
|
|
|
103301
103317
|
ScalarFunction::UnaryFunction<int32_t, int8_t, BitCntOperator>));
|
|
103302
103318
|
functions.AddFunction(ScalarFunction({LogicalType::BIGINT}, LogicalType::TINYINT,
|
|
103303
103319
|
ScalarFunction::UnaryFunction<int64_t, int8_t, BitCntOperator>));
|
|
103320
|
+
functions.AddFunction(ScalarFunction({LogicalType::HUGEINT}, LogicalType::TINYINT,
|
|
103321
|
+
ScalarFunction::UnaryFunction<hugeint_t, int8_t, HugeIntBitCntOperator>));
|
|
103304
103322
|
set.AddFunction(functions);
|
|
103305
103323
|
}
|
|
103306
103324
|
|
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 "c756b7055"
|
|
15
|
+
#define DUCKDB_VERSION "v0.4.1-dev1961"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|