duckdb 0.3.3-dev1374.0 → 0.3.3-dev1383.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-dev1374.0",
4
+ "version": "0.3.3-dev1383.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -4276,7 +4276,19 @@ void CatalogSet::CleanupEntry(CatalogEntry *catalog_entry) {
4276
4276
  // delete the entry from the dependency manager, if it is not deleted yet
4277
4277
  catalog_entry->catalog->dependency_manager->EraseObject(catalog_entry);
4278
4278
  }
4279
- catalog_entry->parent->child = move(catalog_entry->child);
4279
+ auto parent = catalog_entry->parent;
4280
+ parent->child = move(catalog_entry->child);
4281
+ if (parent->deleted && !parent->child && !parent->parent) {
4282
+ auto mapping_entry = mapping.find(parent->name);
4283
+ D_ASSERT(mapping_entry != mapping.end());
4284
+ auto index = mapping_entry->second->index;
4285
+ auto entry = entries.find(index);
4286
+ D_ASSERT(entry != entries.end());
4287
+ if (entry->second.get() == parent) {
4288
+ mapping.erase(mapping_entry);
4289
+ entries.erase(entry);
4290
+ }
4291
+ }
4280
4292
  }
4281
4293
  }
4282
4294
 
@@ -86987,7 +86999,7 @@ static unique_ptr<FunctionData> ListAggregateBind(ClientContext &context, Scalar
86987
86999
 
86988
87000
  ScalarFunction ListAggregateFun::GetFunction() {
86989
87001
  return ScalarFunction({LogicalType::LIST(LogicalType::ANY), LogicalType::VARCHAR}, LogicalType::ANY,
86990
- ListAggregateFunction, false, ListAggregateBind, nullptr, nullptr, nullptr);
87002
+ ListAggregateFunction, false, false, ListAggregateBind, nullptr, nullptr, nullptr);
86991
87003
  }
86992
87004
 
86993
87005
  void ListAggregateFun::RegisterFunction(BuiltinFunctions &set) {
@@ -169551,7 +169563,12 @@ void ValidityScanPartial(ColumnSegment &segment, ColumnScanState &state, idx_t s
169551
169563
  // the bitwise ops we use below don't work if the vector size is too small
169552
169564
  ValidityMask source_mask(input_data);
169553
169565
  for (idx_t i = 0; i < scan_count; i++) {
169554
- result_mask.Set(result_offset + i, source_mask.RowIsValid(start + i));
169566
+ if (!source_mask.RowIsValid(start + i)) {
169567
+ if (result_mask.AllValid()) {
169568
+ result_mask.Initialize(MaxValue<idx_t>(STANDARD_VECTOR_SIZE, result_offset + scan_count));
169569
+ }
169570
+ result_mask.SetInvalid(result_offset + i);
169571
+ }
169555
169572
  }
169556
169573
  #else
169557
169574
  // the code below does what the fallback code above states, but using bitwise ops:
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 "8264eea01"
15
- #define DUCKDB_VERSION "v0.3.3-dev1374"
14
+ #define DUCKDB_SOURCE_ID "3093e74b1"
15
+ #define DUCKDB_VERSION "v0.3.3-dev1383"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //