use switch

This commit is contained in:
JackyWoo 2023-07-19 15:29:36 +08:00
parent 3d467252a8
commit a2001e7087

View File

@ -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);