duckdb 0.6.2-dev2094.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-dev2094.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-dev2094"
2
+ #define DUCKDB_VERSION "0.6.2-dev2098"
3
3
  #endif
4
4
  #ifndef DUCKDB_SOURCE_ID
5
- #define DUCKDB_SOURCE_ID "4552228a14"
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"
@@ -4,6 +4,7 @@ namespace duckdb {
4
4
 
5
5
  static ExtensionAlias internal_aliases[] = {{"http", "httpfs"}, // httpfs
6
6
  {"https", "httpfs"},
7
+ {"md", "motherduck"}, // motherduck
7
8
  {"s3", "httpfs"},
8
9
  {"postgres", "postgres_scanner"}, // postgres
9
10
  {"sqlite", "sqlite_scanner"}, // sqlite
@@ -97,6 +97,7 @@ static DefaultExtension internal_extensions[] = {
97
97
  {"httpfs", "Adds support for reading and writing files over a HTTP(S) connection", HTTPFS_STATICALLY_LOADED},
98
98
  {"json", "Adds support for JSON operations", JSON_STATICALLY_LOADED},
99
99
  {"jemalloc", "Overwrites system allocator with JEMalloc", JEMALLOC_STATICALLY_LOADED},
100
+ {"motherduck", "Enables motherduck integration with the system", false},
100
101
  {"sqlite_scanner", "Adds support for reading SQLite database files", false},
101
102
  {"postgres_scanner", "Adds support for reading from a Postgres database", false},
102
103
  {"inet", "Adds support for IP-related data types and functions", false},