mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge pull request #58745 from Algunenano/i58727
Fix double destroy call on exception throw in addBatchLookupTable8
This commit is contained in:
commit
6b666f20a9
@ -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,
|
||||||
|
@ -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}
|
Loading…
Reference in New Issue
Block a user