Update src/Processors/QueryPlan/Optimizations/useDataParallelAggregation.cpp

Co-authored-by: Nikita Taranov <nikita.taranov@clickhouse.com>
This commit is contained in:
Nikolai Kochetov 2023-11-08 17:28:57 +01:00 committed by GitHub
parent 5095a21758
commit 7eacea4c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ bool isPartitionKeySuitsGroupByKey(
/// We are interested only in calculations required to obtain group by keys (and not aggregate function arguments for example).
auto key_nodes = group_by_actions->findInOutpus(aggregating.getParams().keys);
auto group_by_key_actions = ActionsDAG::cloneSubDAG(key_nodes, true);
auto group_by_key_actions = ActionsDAG::cloneSubDAG(key_nodes, /*remove_aliases=*/ true);
const auto & gb_key_required_columns = group_by_key_actions->getRequiredColumnsNames();