duckdb 0.6.2-dev2096.0 → 0.6.2-dev2098.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.6.2-dev2096.0",
5
+ "version": "0.6.2-dev2098.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
@@ -40,18 +40,15 @@ static void MapExtractFunction(DataChunk &args, ExpressionState &state, Vector &
40
40
  auto &key = args.data[1];
41
41
 
42
42
  UnifiedVectorFormat map_data;
43
- UnifiedVectorFormat key_data;
44
43
 
45
44
  auto &map_keys = MapVector::GetKeys(map);
46
45
  auto &map_values = MapVector::GetValues(map);
47
46
 
48
47
  map.ToUnifiedFormat(args.size(), map_data);
49
- key.ToUnifiedFormat(args.size(), key_data);
50
48
 
51
49
  for (idx_t row = 0; row < args.size(); row++) {
52
50
  idx_t row_index = map_data.sel->get_index(row);
53
- idx_t key_index = key_data.sel->get_index(row);
54
- auto key_value = key.GetValue(key_index);
51
+ auto key_value = key.GetValue(row);
55
52
 
56
53
  list_entry_t entry = ListVector::GetData(map)[row_index];
57
54
  auto offsets = MapVector::Search(map_keys, args.size(), key_value, entry);
@@ -1,8 +1,8 @@
1
1
  #ifndef DUCKDB_VERSION
2
- #define DUCKDB_VERSION "0.6.2-dev2096"
2
+ #define DUCKDB_VERSION "0.6.2-dev2098"
3
3
  #endif
4
4
  #ifndef DUCKDB_SOURCE_ID
5
- #define DUCKDB_SOURCE_ID "f596d7b0fe"
5
+ #define DUCKDB_SOURCE_ID "5b9fd043c9"
6
6
  #endif
7
7
  #include "duckdb/function/table/system_functions.hpp"
8
8
  #include "duckdb/main/database.hpp"