mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
use switch
This commit is contained in:
parent
3d467252a8
commit
a2001e7087
@ -172,8 +172,11 @@ public:
|
||||
|
||||
}
|
||||
|
||||
void AggregateFunctionOfGroupByKeysPass::run(QueryTreeNodePtr query_tree_node, ContextPtr /*context*/)
|
||||
void AggregateFunctionOfGroupByKeysPass::run(QueryTreeNodePtr query_tree_node, ContextPtr context)
|
||||
{
|
||||
if (!context->getSettingsRef().optimize_aggregators_of_group_by_keys)
|
||||
return;
|
||||
|
||||
CollectQueryAndGroupByKeysVisitor collector;
|
||||
collector.visit(query_tree_node);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user