duckdb 0.6.2-dev1095.0 → 0.6.2-dev1097.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/src/function/scalar/math/numeric.cpp +19 -0
- package/src/duckdb/src/function/scalar/math_functions.cpp +1 -0
- package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
- package/src/duckdb/src/include/duckdb/function/scalar/math_functions.hpp +4 -0
package/package.json
CHANGED
|
@@ -846,6 +846,25 @@ void IsNanFun::RegisterFunction(BuiltinFunctions &set) {
|
|
|
846
846
|
set.AddFunction(funcs);
|
|
847
847
|
}
|
|
848
848
|
|
|
849
|
+
//===--------------------------------------------------------------------===//
|
|
850
|
+
// signbit
|
|
851
|
+
//===--------------------------------------------------------------------===//
|
|
852
|
+
struct SignBitOperator {
|
|
853
|
+
template <class TA, class TR>
|
|
854
|
+
static inline TR Operation(TA input) {
|
|
855
|
+
return std::signbit(input);
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
void SignBitFun::RegisterFunction(BuiltinFunctions &set) {
|
|
860
|
+
ScalarFunctionSet funcs("signbit");
|
|
861
|
+
funcs.AddFunction(ScalarFunction({LogicalType::FLOAT}, LogicalType::BOOLEAN,
|
|
862
|
+
ScalarFunction::UnaryFunction<float, bool, SignBitOperator>));
|
|
863
|
+
funcs.AddFunction(ScalarFunction({LogicalType::DOUBLE}, LogicalType::BOOLEAN,
|
|
864
|
+
ScalarFunction::UnaryFunction<double, bool, SignBitOperator>));
|
|
865
|
+
set.AddFunction(funcs);
|
|
866
|
+
}
|
|
867
|
+
|
|
849
868
|
//===--------------------------------------------------------------------===//
|
|
850
869
|
// isinf
|
|
851
870
|
//===--------------------------------------------------------------------===//
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#ifndef DUCKDB_VERSION
|
|
2
|
-
#define DUCKDB_VERSION "0.6.2-
|
|
2
|
+
#define DUCKDB_VERSION "0.6.2-dev1097"
|
|
3
3
|
#endif
|
|
4
4
|
#ifndef DUCKDB_SOURCE_ID
|
|
5
|
-
#define DUCKDB_SOURCE_ID "
|
|
5
|
+
#define DUCKDB_SOURCE_ID "9e64704159"
|
|
6
6
|
#endif
|
|
7
7
|
#include "duckdb/function/table/system_functions.hpp"
|
|
8
8
|
#include "duckdb/main/database.hpp"
|
|
@@ -110,6 +110,10 @@ struct IsNanFun {
|
|
|
110
110
|
static void RegisterFunction(BuiltinFunctions &set);
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
+
struct SignBitFun {
|
|
114
|
+
static void RegisterFunction(BuiltinFunctions &set);
|
|
115
|
+
};
|
|
116
|
+
|
|
113
117
|
struct IsInfiniteFun {
|
|
114
118
|
static void RegisterFunction(BuiltinFunctions &set);
|
|
115
119
|
};
|