duckdb 0.5.2-dev1980.0 → 0.5.2-dev1987.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
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.5.2-dev1980.0",
5
+ "version": "0.5.2-dev1987.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -184928,9 +184928,15 @@ static void InvertPercentileFractions(unique_ptr<ParsedExpression> &fractions) {
184928
184928
  if (value.type().id() == LogicalTypeId::LIST) {
184929
184929
  vector<Value> values;
184930
184930
  for (const auto &element_val : ListValue::GetChildren(value)) {
184931
- values.push_back(Value::DOUBLE(1 - element_val.GetValue<double>()));
184931
+ if (element_val.IsNull()) {
184932
+ values.push_back(element_val);
184933
+ } else {
184934
+ values.push_back(Value::DOUBLE(1 - element_val.GetValue<double>()));
184935
+ }
184932
184936
  }
184933
184937
  bound.expr = make_unique<BoundConstantExpression>(Value::LIST(values));
184938
+ } else if (value.IsNull()) {
184939
+ bound.expr = make_unique<BoundConstantExpression>(value);
184934
184940
  } else {
184935
184941
  bound.expr = make_unique<BoundConstantExpression>(Value::DOUBLE(1 - value.GetValue<double>()));
184936
184942
  }
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 "7409d2e2c9"
15
- #define DUCKDB_VERSION "v0.5.2-dev1980"
14
+ #define DUCKDB_SOURCE_ID "88f5329f4b"
15
+ #define DUCKDB_VERSION "v0.5.2-dev1987"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //