Merge branch 'ClickHouse:master' into polygon_bug_fix

This commit is contained in:
Yarik Briukhovetskyi 2024-01-13 12:00:22 +01:00 committed by GitHub
commit e1e193ae93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -1204,8 +1204,9 @@ void NO_INLINE Aggregator::executeImplBatch(
inst->state_offset, inst->state_offset,
[&](AggregateDataPtr & aggregate_data) [&](AggregateDataPtr & aggregate_data)
{ {
aggregate_data = aggregates_pool->alignedAlloc(total_size_of_aggregate_states, align_aggregate_states); AggregateDataPtr place = aggregates_pool->alignedAlloc(total_size_of_aggregate_states, align_aggregate_states);
createAggregateStates(aggregate_data); createAggregateStates(place);
aggregate_data = place;
}, },
state.getKeyData(), state.getKeyData(),
inst->batch_arguments, inst->batch_arguments,

View File

@ -0,0 +1,2 @@
-- https://github.com/ClickHouse/ClickHouse/issues/58727
SELECT number % 2 AS even, aggThrow(number) FROM numbers(10) GROUP BY even; -- { serverError AGGREGATE_FUNCTION_THROW}