duckdb 0.3.5-dev964.0 → 0.3.5-dev966.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
- "version": "0.3.5-dev964.0",
4
+ "version": "0.3.5-dev966.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -97509,12 +97509,28 @@ struct IsInfiniteOperator {
97509
97509
  }
97510
97510
  };
97511
97511
 
97512
+ template <>
97513
+ bool IsInfiniteOperator::Operation(date_t input) {
97514
+ return !Value::IsFinite(input);
97515
+ }
97516
+
97517
+ template <>
97518
+ bool IsInfiniteOperator::Operation(timestamp_t input) {
97519
+ return !Value::IsFinite(input);
97520
+ }
97521
+
97512
97522
  void IsInfiniteFun::RegisterFunction(BuiltinFunctions &set) {
97513
97523
  ScalarFunctionSet funcs("isinf");
97514
97524
  funcs.AddFunction(ScalarFunction({LogicalType::FLOAT}, LogicalType::BOOLEAN,
97515
97525
  ScalarFunction::UnaryFunction<float, bool, IsInfiniteOperator>));
97516
97526
  funcs.AddFunction(ScalarFunction({LogicalType::DOUBLE}, LogicalType::BOOLEAN,
97517
97527
  ScalarFunction::UnaryFunction<double, bool, IsInfiniteOperator>));
97528
+ funcs.AddFunction(ScalarFunction({LogicalType::DATE}, LogicalType::BOOLEAN,
97529
+ ScalarFunction::UnaryFunction<date_t, bool, IsInfiniteOperator>));
97530
+ funcs.AddFunction(ScalarFunction({LogicalType::TIMESTAMP}, LogicalType::BOOLEAN,
97531
+ ScalarFunction::UnaryFunction<timestamp_t, bool, IsInfiniteOperator>));
97532
+ funcs.AddFunction(ScalarFunction({LogicalType::TIMESTAMP_TZ}, LogicalType::BOOLEAN,
97533
+ ScalarFunction::UnaryFunction<timestamp_t, bool, IsInfiniteOperator>));
97518
97534
  set.AddFunction(funcs);
97519
97535
  }
97520
97536
 
@@ -97534,6 +97550,12 @@ void IsFiniteFun::RegisterFunction(BuiltinFunctions &set) {
97534
97550
  ScalarFunction::UnaryFunction<float, bool, IsFiniteOperator>));
97535
97551
  funcs.AddFunction(ScalarFunction({LogicalType::DOUBLE}, LogicalType::BOOLEAN,
97536
97552
  ScalarFunction::UnaryFunction<double, bool, IsFiniteOperator>));
97553
+ funcs.AddFunction(ScalarFunction({LogicalType::DATE}, LogicalType::BOOLEAN,
97554
+ ScalarFunction::UnaryFunction<date_t, bool, IsFiniteOperator>));
97555
+ funcs.AddFunction(ScalarFunction({LogicalType::TIMESTAMP}, LogicalType::BOOLEAN,
97556
+ ScalarFunction::UnaryFunction<timestamp_t, bool, IsFiniteOperator>));
97557
+ funcs.AddFunction(ScalarFunction({LogicalType::TIMESTAMP_TZ}, LogicalType::BOOLEAN,
97558
+ ScalarFunction::UnaryFunction<timestamp_t, bool, IsFiniteOperator>));
97537
97559
  set.AddFunction(funcs);
97538
97560
  }
97539
97561
 
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 "950e78c27"
15
- #define DUCKDB_VERSION "v0.3.5-dev964"
14
+ #define DUCKDB_SOURCE_ID "466fb1f9d"
15
+ #define DUCKDB_VERSION "v0.3.5-dev966"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //