duckdb 0.3.3-dev1393.0 → 0.3.3-dev1395.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.3-dev1393.0",
4
+ "version": "0.3.3-dev1395.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -74887,9 +74887,9 @@ struct VectorMinMaxBase {
74887
74887
  const auto sidx = sdata.sel->get_index(i);
74888
74888
  auto state = states[sidx];
74889
74889
  if (!state->value) {
74890
- Assign(state, input, idx);
74890
+ Assign(state, input, i);
74891
74891
  } else {
74892
- OP::template Execute(state, input, idx, count);
74892
+ OP::template Execute(state, input, i, count);
74893
74893
  }
74894
74894
  }
74895
74895
  }
@@ -74908,10 +74908,19 @@ struct VectorMinMaxBase {
74908
74908
  template <class T, class STATE>
74909
74909
  static void Finalize(Vector &result, FunctionData *, STATE *state, T *target, ValidityMask &mask, idx_t idx) {
74910
74910
  if (!state->value) {
74911
- // we need to use FlatVector::SetNull here
74911
+ // we need to use SetNull here
74912
74912
  // since for STRUCT columns only setting the validity mask of the struct is incorrect
74913
74913
  // as for a struct column, we need to also set ALL child columns to NULL
74914
- FlatVector::SetNull(result, idx, true);
74914
+ switch (result.GetVectorType()) {
74915
+ case VectorType::FLAT_VECTOR:
74916
+ FlatVector::SetNull(result, idx, true);
74917
+ break;
74918
+ case VectorType::CONSTANT_VECTOR:
74919
+ ConstantVector::SetNull(result, true);
74920
+ break;
74921
+ default:
74922
+ throw InternalException("Invalid result vector type for nested min/max");
74923
+ }
74915
74924
  } else {
74916
74925
  VectorOperations::Copy(*state->value, result, 1, 0, idx);
74917
74926
  }
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 "dece0efa7"
15
- #define DUCKDB_VERSION "v0.3.3-dev1393"
14
+ #define DUCKDB_SOURCE_ID "80ae1e12d"
15
+ #define DUCKDB_VERSION "v0.3.3-dev1395"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //