diff --git a/dbms/src/Interpreters/Aggregator.cpp b/dbms/src/Interpreters/Aggregator.cpp index 6d5d24ebda9..5571d0fdcfd 100644 --- a/dbms/src/Interpreters/Aggregator.cpp +++ b/dbms/src/Interpreters/Aggregator.cpp @@ -1332,7 +1332,7 @@ inline void Aggregator::insertAggregatesIntoColumns( for (size_t destroy_i = 0; destroy_i < params.aggregates_size; ++destroy_i) { /// If ownership was not transferred to ColumnAggregateFunction. - if (destroy_i >= insert_i || !aggregate_functions[destroy_i]->isState())) + if (destroy_i >= insert_i || !aggregate_functions[destroy_i]->isState()) aggregate_functions[destroy_i]->destroy(mapped + offsets_of_aggregate_states[destroy_i]); }