duckdb 0.5.2-dev58.0 → 0.5.2-dev64.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 +1 -1
- package/src/duckdb.cpp +8 -7
- package/src/duckdb.hpp +667 -667
- package/src/parquet-amalgamation.cpp +35020 -35020
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -657,6 +657,7 @@ static constexpr ExtensionFunction EXTENSION_FUNCTIONS[] = {
|
|
|
657
657
|
{"json", "json"},
|
|
658
658
|
{"json_array", "json"},
|
|
659
659
|
{"json_array_length", "json"},
|
|
660
|
+
{"json_contains", "json"},
|
|
660
661
|
{"json_extract", "json"},
|
|
661
662
|
{"json_extract_path", "json"},
|
|
662
663
|
{"json_extract_path_text", "json"},
|
|
@@ -34073,7 +34074,7 @@ static void ComputeStringEntrySizes(UnifiedVectorFormat &vdata, idx_t entry_size
|
|
|
34073
34074
|
auto strings = (string_t *)vdata.data;
|
|
34074
34075
|
for (idx_t i = 0; i < ser_count; i++) {
|
|
34075
34076
|
auto idx = sel.get_index(i);
|
|
34076
|
-
auto str_idx = vdata.sel->get_index(idx
|
|
34077
|
+
auto str_idx = vdata.sel->get_index(idx + offset);
|
|
34077
34078
|
if (vdata.validity.RowIsValid(str_idx)) {
|
|
34078
34079
|
entry_sizes[i] += sizeof(uint32_t) + strings[str_idx].GetSize();
|
|
34079
34080
|
}
|
|
@@ -34104,7 +34105,7 @@ static void ComputeListEntrySizes(Vector &v, UnifiedVectorFormat &vdata, idx_t e
|
|
|
34104
34105
|
idx_t list_entry_sizes[STANDARD_VECTOR_SIZE];
|
|
34105
34106
|
for (idx_t i = 0; i < ser_count; i++) {
|
|
34106
34107
|
auto idx = sel.get_index(i);
|
|
34107
|
-
auto source_idx = vdata.sel->get_index(idx
|
|
34108
|
+
auto source_idx = vdata.sel->get_index(idx + offset);
|
|
34108
34109
|
if (vdata.validity.RowIsValid(source_idx)) {
|
|
34109
34110
|
auto list_entry = list_data[source_idx];
|
|
34110
34111
|
|
|
@@ -34182,7 +34183,7 @@ static void TemplatedHeapScatter(UnifiedVectorFormat &vdata, const SelectionVect
|
|
|
34182
34183
|
if (!validitymask_locations) {
|
|
34183
34184
|
for (idx_t i = 0; i < count; i++) {
|
|
34184
34185
|
auto idx = sel.get_index(i);
|
|
34185
|
-
auto source_idx = vdata.sel->get_index(idx
|
|
34186
|
+
auto source_idx = vdata.sel->get_index(idx + offset);
|
|
34186
34187
|
|
|
34187
34188
|
auto target = (T *)key_locations[i];
|
|
34188
34189
|
Store<T>(source[source_idx], (data_ptr_t)target);
|
|
@@ -34195,7 +34196,7 @@ static void TemplatedHeapScatter(UnifiedVectorFormat &vdata, const SelectionVect
|
|
|
34195
34196
|
const auto bit = ~(1UL << idx_in_entry);
|
|
34196
34197
|
for (idx_t i = 0; i < count; i++) {
|
|
34197
34198
|
auto idx = sel.get_index(i);
|
|
34198
|
-
auto source_idx = vdata.sel->get_index(idx
|
|
34199
|
+
auto source_idx = vdata.sel->get_index(idx + offset);
|
|
34199
34200
|
|
|
34200
34201
|
auto target = (T *)key_locations[i];
|
|
34201
34202
|
Store<T>(source[source_idx], (data_ptr_t)target);
|
|
@@ -34218,7 +34219,7 @@ static void HeapScatterStringVector(Vector &v, idx_t vcount, const SelectionVect
|
|
|
34218
34219
|
if (!validitymask_locations) {
|
|
34219
34220
|
for (idx_t i = 0; i < ser_count; i++) {
|
|
34220
34221
|
auto idx = sel.get_index(i);
|
|
34221
|
-
auto source_idx = vdata.sel->get_index(idx
|
|
34222
|
+
auto source_idx = vdata.sel->get_index(idx + offset);
|
|
34222
34223
|
if (vdata.validity.RowIsValid(source_idx)) {
|
|
34223
34224
|
auto &string_entry = strings[source_idx];
|
|
34224
34225
|
// store string size
|
|
@@ -34236,7 +34237,7 @@ static void HeapScatterStringVector(Vector &v, idx_t vcount, const SelectionVect
|
|
|
34236
34237
|
const auto bit = ~(1UL << idx_in_entry);
|
|
34237
34238
|
for (idx_t i = 0; i < ser_count; i++) {
|
|
34238
34239
|
auto idx = sel.get_index(i);
|
|
34239
|
-
auto source_idx = vdata.sel->get_index(idx
|
|
34240
|
+
auto source_idx = vdata.sel->get_index(idx + offset);
|
|
34240
34241
|
if (vdata.validity.RowIsValid(source_idx)) {
|
|
34241
34242
|
auto &string_entry = strings[source_idx];
|
|
34242
34243
|
// store string size
|
|
@@ -34314,7 +34315,7 @@ static void HeapScatterListVector(Vector &v, idx_t vcount, const SelectionVector
|
|
|
34314
34315
|
|
|
34315
34316
|
for (idx_t i = 0; i < ser_count; i++) {
|
|
34316
34317
|
auto idx = sel.get_index(i);
|
|
34317
|
-
auto source_idx = vdata.sel->get_index(idx
|
|
34318
|
+
auto source_idx = vdata.sel->get_index(idx + offset);
|
|
34318
34319
|
if (!vdata.validity.RowIsValid(source_idx)) {
|
|
34319
34320
|
if (validitymask_locations) {
|
|
34320
34321
|
// set the row validitymask for this column to invalid
|