duckdb 0.3.4-dev68.0 → 0.3.4-dev72.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.4-dev68.0",
4
+ "version": "0.3.4-dev72.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -87824,6 +87824,10 @@ static void TemplatedContainsOrPosition(DataChunk &args, ExpressionState &state,
87824
87824
  VectorData value_data;
87825
87825
  value_vector.Orrify(count, value_data);
87826
87826
 
87827
+ // not required for a comparison of nested types
87828
+ auto child_value = FlatVector::GetData<CHILD_TYPE>(child_vector);
87829
+ auto values = FlatVector::GetData<CHILD_TYPE>(value_vector);
87830
+
87827
87831
  for (idx_t i = 0; i < count; i++) {
87828
87832
  auto list_index = list_data.sel->get_index(i);
87829
87833
  auto value_index = value_data.sel->get_index(i);
@@ -87834,23 +87838,18 @@ static void TemplatedContainsOrPosition(DataChunk &args, ExpressionState &state,
87834
87838
  }
87835
87839
 
87836
87840
  const auto &list_entry = list_entries[list_index];
87837
- auto source_idx = child_data.sel->get_index(list_entry.offset);
87838
-
87839
- // not required for a comparison of nested types
87840
- auto child_value = FlatVector::GetData<CHILD_TYPE>(child_vector);
87841
- auto values = FlatVector::GetData<CHILD_TYPE>(value_vector);
87842
87841
 
87843
- result_entries[list_index] = OP::Initialize();
87842
+ result_entries[i] = OP::Initialize();
87844
87843
  for (idx_t child_idx = 0; child_idx < list_entry.length; child_idx++) {
87845
- auto child_value_idx = source_idx + child_idx;
87846
87844
 
87845
+ auto child_value_idx = child_data.sel->get_index(list_entry.offset + child_idx);
87847
87846
  if (!child_data.validity.RowIsValid(child_value_idx)) {
87848
87847
  continue;
87849
87848
  }
87850
87849
 
87851
87850
  if (!is_nested) {
87852
87851
  if (ValueEqualsOrNot<CHILD_TYPE>(child_value[child_value_idx], values[value_index])) {
87853
- result_entries[list_index] = OP::UpdateResultEntries(child_idx);
87852
+ result_entries[i] = OP::UpdateResultEntries(child_idx);
87854
87853
  break; // Found value in list, no need to look further
87855
87854
  }
87856
87855
  } else {
@@ -87858,7 +87857,7 @@ static void TemplatedContainsOrPosition(DataChunk &args, ExpressionState &state,
87858
87857
  // to more efficiently compare nested types
87859
87858
  if (ValueEqualsOrNot<Value>(child_vector.GetValue(child_value_idx),
87860
87859
  value_vector.GetValue(value_index))) {
87861
- result_entries[list_index] = OP::UpdateResultEntries(child_idx);
87860
+ result_entries[i] = OP::UpdateResultEntries(child_idx);
87862
87861
  break; // Found value in list, no need to look further
87863
87862
  }
87864
87863
  }
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 "ec827df5f"
15
- #define DUCKDB_VERSION "v0.3.4-dev68"
14
+ #define DUCKDB_SOURCE_ID "c860314ae"
15
+ #define DUCKDB_VERSION "v0.3.4-dev72"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //