duckdb 0.5.2-dev58.0 → 0.5.2-dev62.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.5.2-dev58.0",
4
+ "version": "0.5.2-dev62.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -34073,7 +34073,7 @@ static void ComputeStringEntrySizes(UnifiedVectorFormat &vdata, idx_t entry_size
34073
34073
  auto strings = (string_t *)vdata.data;
34074
34074
  for (idx_t i = 0; i < ser_count; i++) {
34075
34075
  auto idx = sel.get_index(i);
34076
- auto str_idx = vdata.sel->get_index(idx) + offset;
34076
+ auto str_idx = vdata.sel->get_index(idx + offset);
34077
34077
  if (vdata.validity.RowIsValid(str_idx)) {
34078
34078
  entry_sizes[i] += sizeof(uint32_t) + strings[str_idx].GetSize();
34079
34079
  }
@@ -34104,7 +34104,7 @@ static void ComputeListEntrySizes(Vector &v, UnifiedVectorFormat &vdata, idx_t e
34104
34104
  idx_t list_entry_sizes[STANDARD_VECTOR_SIZE];
34105
34105
  for (idx_t i = 0; i < ser_count; i++) {
34106
34106
  auto idx = sel.get_index(i);
34107
- auto source_idx = vdata.sel->get_index(idx) + offset;
34107
+ auto source_idx = vdata.sel->get_index(idx + offset);
34108
34108
  if (vdata.validity.RowIsValid(source_idx)) {
34109
34109
  auto list_entry = list_data[source_idx];
34110
34110
 
@@ -34182,7 +34182,7 @@ static void TemplatedHeapScatter(UnifiedVectorFormat &vdata, const SelectionVect
34182
34182
  if (!validitymask_locations) {
34183
34183
  for (idx_t i = 0; i < count; i++) {
34184
34184
  auto idx = sel.get_index(i);
34185
- auto source_idx = vdata.sel->get_index(idx) + offset;
34185
+ auto source_idx = vdata.sel->get_index(idx + offset);
34186
34186
 
34187
34187
  auto target = (T *)key_locations[i];
34188
34188
  Store<T>(source[source_idx], (data_ptr_t)target);
@@ -34195,7 +34195,7 @@ static void TemplatedHeapScatter(UnifiedVectorFormat &vdata, const SelectionVect
34195
34195
  const auto bit = ~(1UL << idx_in_entry);
34196
34196
  for (idx_t i = 0; i < count; i++) {
34197
34197
  auto idx = sel.get_index(i);
34198
- auto source_idx = vdata.sel->get_index(idx) + offset;
34198
+ auto source_idx = vdata.sel->get_index(idx + offset);
34199
34199
 
34200
34200
  auto target = (T *)key_locations[i];
34201
34201
  Store<T>(source[source_idx], (data_ptr_t)target);
@@ -34218,7 +34218,7 @@ static void HeapScatterStringVector(Vector &v, idx_t vcount, const SelectionVect
34218
34218
  if (!validitymask_locations) {
34219
34219
  for (idx_t i = 0; i < ser_count; i++) {
34220
34220
  auto idx = sel.get_index(i);
34221
- auto source_idx = vdata.sel->get_index(idx) + offset;
34221
+ auto source_idx = vdata.sel->get_index(idx + offset);
34222
34222
  if (vdata.validity.RowIsValid(source_idx)) {
34223
34223
  auto &string_entry = strings[source_idx];
34224
34224
  // store string size
@@ -34236,7 +34236,7 @@ static void HeapScatterStringVector(Vector &v, idx_t vcount, const SelectionVect
34236
34236
  const auto bit = ~(1UL << idx_in_entry);
34237
34237
  for (idx_t i = 0; i < ser_count; i++) {
34238
34238
  auto idx = sel.get_index(i);
34239
- auto source_idx = vdata.sel->get_index(idx) + offset;
34239
+ auto source_idx = vdata.sel->get_index(idx + offset);
34240
34240
  if (vdata.validity.RowIsValid(source_idx)) {
34241
34241
  auto &string_entry = strings[source_idx];
34242
34242
  // store string size
@@ -34314,7 +34314,7 @@ static void HeapScatterListVector(Vector &v, idx_t vcount, const SelectionVector
34314
34314
 
34315
34315
  for (idx_t i = 0; i < ser_count; i++) {
34316
34316
  auto idx = sel.get_index(i);
34317
- auto source_idx = vdata.sel->get_index(idx) + offset;
34317
+ auto source_idx = vdata.sel->get_index(idx + offset);
34318
34318
  if (!vdata.validity.RowIsValid(source_idx)) {
34319
34319
  if (validitymask_locations) {
34320
34320
  // set the row validitymask for this column to invalid
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 "832a84d50"
15
- #define DUCKDB_VERSION "v0.5.2-dev58"
14
+ #define DUCKDB_SOURCE_ID "48dd0a401"
15
+ #define DUCKDB_VERSION "v0.5.2-dev62"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //