clang tidy

This commit is contained in:
Yakov Olkhovskiy 2024-01-18 19:17:05 +00:00
parent 1144f60515
commit 43aaccdaa1

View File

@ -354,13 +354,13 @@ QueryTreeNodes extractTrueTableExpressions(const QueryTreeNodePtr & tree)
}
case QueryTreeNodeType::UNION:
{
for (auto union_node : node_to_process->as<UnionNode>()->getQueries().getNodes())
for (const auto & union_node : node_to_process->as<UnionNode>()->getQueries().getNodes())
nodes_to_process.push_front(union_node);
break;
}
case QueryTreeNodeType::TABLE_FUNCTION:
{
for (auto argument_node : node_to_process->as<TableFunctionNode>()->getArgumentsNode()->getChildren())
for (const auto & argument_node : node_to_process->as<TableFunctionNode>()->getArgumentsNode()->getChildren())
nodes_to_process.push_front(argument_node);
break;
}