duckdb 0.3.5-dev503.0 → 0.3.5-dev505.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-dev503.0",
4
+ "version": "0.3.5-dev505.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -179611,6 +179611,9 @@ string DistinctStatistics::ToString() const {
179611
179611
  }
179612
179612
 
179613
179613
  idx_t DistinctStatistics::GetCount() const {
179614
+ if (sample_count == 0 || total_count == 0) {
179615
+ return 0;
179616
+ }
179614
179617
  // Estimate HLL count because we use sampling
179615
179618
  double hll_count = log->Count();
179616
179619
  double unique_proportion = hll_count / double(sample_count);
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 "b709cce20"
15
- #define DUCKDB_VERSION "v0.3.5-dev503"
14
+ #define DUCKDB_SOURCE_ID "98b3708d1"
15
+ #define DUCKDB_VERSION "v0.3.5-dev505"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //