duckdb 0.3.5-dev658.0 → 0.3.5-dev661.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 +14 -17
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +35909 -35909
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -52758,28 +52758,23 @@ idx_t GroupedAggregateHashTable::AddChunk(DataChunk &groups, Vector &group_hashe
|
|
|
52758
52758
|
// value have not been seen yet
|
|
52759
52759
|
idx_t new_group_count =
|
|
52760
52760
|
distinct_hashes[aggr_idx]->FindOrCreateGroups(probe_chunk, dummy_addresses, new_groups);
|
|
52761
|
-
|
|
52762
|
-
// now fix up the payload and addresses accordingly by creating
|
|
52763
|
-
// a selection vector
|
|
52764
52761
|
if (new_group_count > 0) {
|
|
52762
|
+
// now fix up the payload and addresses accordingly by creating
|
|
52763
|
+
// a selection vector
|
|
52764
|
+
DataChunk distinct_payload;
|
|
52765
|
+
distinct_payload.Initialize(payload.GetTypes());
|
|
52766
|
+
distinct_payload.Slice(payload, new_groups, new_group_count);
|
|
52767
|
+
distinct_payload.Verify();
|
|
52768
|
+
|
|
52769
|
+
Vector distinct_addresses(addresses, new_groups, new_group_count);
|
|
52770
|
+
distinct_addresses.Verify(new_group_count);
|
|
52771
|
+
|
|
52765
52772
|
if (aggr.filter) {
|
|
52766
|
-
Vector distinct_addresses(addresses, new_groups, new_group_count);
|
|
52767
|
-
DataChunk distinct_payload;
|
|
52768
|
-
auto pay_types = payload.GetTypes();
|
|
52769
|
-
distinct_payload.Initialize(pay_types);
|
|
52770
|
-
distinct_payload.Slice(payload, new_groups, new_group_count);
|
|
52771
|
-
distinct_addresses.Verify(new_group_count);
|
|
52772
52773
|
distinct_addresses.Normalify(new_group_count);
|
|
52773
52774
|
RowOperations::UpdateFilteredStates(aggr, distinct_addresses, distinct_payload, payload_idx);
|
|
52774
52775
|
} else {
|
|
52775
|
-
|
|
52776
|
-
|
|
52777
|
-
payload.data[payload_idx + i].Slice(new_groups, new_group_count);
|
|
52778
|
-
payload.data[payload_idx + i].Verify(new_group_count);
|
|
52779
|
-
}
|
|
52780
|
-
distinct_addresses.Verify(new_group_count);
|
|
52781
|
-
|
|
52782
|
-
RowOperations::UpdateStates(aggr, distinct_addresses, payload, payload_idx, new_group_count);
|
|
52776
|
+
RowOperations::UpdateStates(aggr, distinct_addresses, distinct_payload, payload_idx,
|
|
52777
|
+
new_group_count);
|
|
52783
52778
|
}
|
|
52784
52779
|
}
|
|
52785
52780
|
} else if (aggr.filter) {
|
|
@@ -58033,6 +58028,7 @@ SinkResultType PhysicalHashAggregate::Sink(ExecutionContext &context, GlobalSink
|
|
|
58033
58028
|
for (auto &child_expr : aggr.children) {
|
|
58034
58029
|
D_ASSERT(child_expr->type == ExpressionType::BOUND_REF);
|
|
58035
58030
|
auto &bound_ref_expr = (BoundReferenceExpression &)*child_expr;
|
|
58031
|
+
D_ASSERT(bound_ref_expr.index < input.data.size());
|
|
58036
58032
|
aggregate_input_chunk.data[aggregate_input_idx++].Reference(input.data[bound_ref_expr.index]);
|
|
58037
58033
|
}
|
|
58038
58034
|
}
|
|
@@ -58041,6 +58037,7 @@ SinkResultType PhysicalHashAggregate::Sink(ExecutionContext &context, GlobalSink
|
|
|
58041
58037
|
if (aggr.filter) {
|
|
58042
58038
|
auto it = filter_indexes.find(aggr.filter.get());
|
|
58043
58039
|
D_ASSERT(it != filter_indexes.end());
|
|
58040
|
+
D_ASSERT(it->second < input.data.size());
|
|
58044
58041
|
aggregate_input_chunk.data[aggregate_input_idx++].Reference(input.data[it->second]);
|
|
58045
58042
|
}
|
|
58046
58043
|
}
|
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 "
|
|
15
|
-
#define DUCKDB_VERSION "v0.3.5-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "4069df7ed"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.5-dev661"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|