duckdb 0.3.5-dev457.0 → 0.3.5-dev464.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-dev457.0",
4
+ "version": "0.3.5-dev464.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -174103,14 +174103,8 @@ public:
174103
174103
  namespace duckdb {
174104
174104
 
174105
174105
  struct StringHash {
174106
- std::size_t operator()(const string_t &k) const {
174107
- return Hash(k.GetDataUnsafe(), k.GetSize());
174108
- }
174109
- };
174110
-
174111
- struct StringCompare {
174112
- bool operator()(const string_t &lhs, const string_t &rhs) const {
174113
- return StringComparisonOperators::EqualsOrNot<false>(lhs, rhs);
174106
+ std::size_t operator()(const string &k) const {
174107
+ return Hash(k.c_str(), k.size());
174114
174108
  }
174115
174109
  };
174116
174110
 
@@ -174269,7 +174263,7 @@ struct DictionaryCompressionCompressState : public DictionaryCompressionState {
174269
174263
  data_ptr_t current_end_ptr;
174270
174264
 
174271
174265
  // Buffers and map for current segment
174272
- std::unordered_map<string_t, uint32_t, StringHash, StringCompare> current_string_map;
174266
+ std::unordered_map<string, uint32_t, StringHash> current_string_map;
174273
174267
  std::vector<uint32_t> index_buffer;
174274
174268
  std::vector<uint32_t> selection_buffer;
174275
174269
 
@@ -174289,7 +174283,7 @@ struct DictionaryCompressionCompressState : public DictionaryCompressionState {
174289
174283
  }
174290
174284
 
174291
174285
  bool LookupString(string_t str) override {
174292
- auto search = current_string_map.find(str);
174286
+ auto search = current_string_map.find(str.GetString());
174293
174287
  auto has_result = search != current_string_map.end();
174294
174288
 
174295
174289
  if (has_result) {
@@ -174311,7 +174305,7 @@ struct DictionaryCompressionCompressState : public DictionaryCompressionState {
174311
174305
  // Update buffers and map
174312
174306
  index_buffer.push_back(current_dictionary.size);
174313
174307
  selection_buffer.push_back(index_buffer.size() - 1);
174314
- current_string_map.insert({str, index_buffer.size() - 1});
174308
+ current_string_map.insert({str.GetString(), index_buffer.size() - 1});
174315
174309
  DictionaryCompressionStorage::SetDictionary(*current_segment, *current_handle, current_dictionary);
174316
174310
 
174317
174311
  current_width = next_width;
@@ -174420,19 +174414,19 @@ struct DictionaryCompressionAnalyzeState : public AnalyzeState, DictionaryCompre
174420
174414
  idx_t current_tuple_count;
174421
174415
  idx_t current_unique_count;
174422
174416
  size_t current_dict_size;
174423
- std::unordered_set<string_t, StringHash, StringCompare> current_set;
174417
+ std::unordered_set<string, StringHash> current_set;
174424
174418
  bitpacking_width_t current_width;
174425
174419
  bitpacking_width_t next_width;
174426
174420
 
174427
174421
  bool LookupString(string_t str) override {
174428
- return current_set.count(str);
174422
+ return current_set.count(str.GetString());
174429
174423
  }
174430
174424
 
174431
174425
  void AddNewString(string_t str) override {
174432
174426
  current_tuple_count++;
174433
174427
  current_unique_count++;
174434
174428
  current_dict_size += str.GetSize();
174435
- current_set.insert(str);
174429
+ current_set.insert(str.GetString());
174436
174430
  current_width = next_width;
174437
174431
  }
174438
174432
 
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 "e9ab0d515"
15
- #define DUCKDB_VERSION "v0.3.5-dev457"
14
+ #define DUCKDB_SOURCE_ID "e0f76077b"
15
+ #define DUCKDB_VERSION "v0.3.5-dev464"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //