duckdb 0.5.2-dev2283.0 → 0.5.2-dev2289.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-dev2283.0",
5
+ "version": "0.5.2-dev2289.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -199633,6 +199633,7 @@ unique_ptr<LogicalOperator> LogicalLimit::Deserialize(LogicalDeserializationStat
199633
199633
  } // namespace duckdb
199634
199634
 
199635
199635
 
199636
+ #include <cmath>
199636
199637
 
199637
199638
  namespace duckdb {
199638
199639
 
@@ -199653,7 +199654,7 @@ unique_ptr<LogicalOperator> LogicalLimitPercent::Deserialize(LogicalDeserializat
199653
199654
 
199654
199655
  idx_t LogicalLimitPercent::EstimateCardinality(ClientContext &context) {
199655
199656
  auto child_cardinality = LogicalOperator::EstimateCardinality(context);
199656
- if (limit_percent < 0 || limit_percent > 100) {
199657
+ if ((limit_percent < 0 || limit_percent > 100) || std::isnan(limit_percent)) {
199657
199658
  return child_cardinality;
199658
199659
  }
199659
199660
  return idx_t(child_cardinality * (limit_percent / 100.0));
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 "f0ec7187be"
15
- #define DUCKDB_VERSION "v0.5.2-dev2283"
14
+ #define DUCKDB_SOURCE_ID "a330b3b268"
15
+ #define DUCKDB_VERSION "v0.5.2-dev2289"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //