Check what would be broken if do not add all the identifiers to functions map.

This commit is contained in:
Nikolai Kochetov 2024-05-16 17:43:59 +00:00
parent 08bcbfc251
commit b82eeeee88

View File

@ -1039,10 +1039,6 @@ private:
auto [_, inserted] = scope.alias_name_to_expression_node.insert(std::make_pair(alias, node)); auto [_, inserted] = scope.alias_name_to_expression_node.insert(std::make_pair(alias, node));
if (!inserted) if (!inserted)
scope.nodes_with_duplicated_aliases.insert(node); scope.nodes_with_duplicated_aliases.insert(node);
/// If node is identifier put it also in scope alias name to lambda node map
if (node->getNodeType() == QueryTreeNodeType::IDENTIFIER)
scope.alias_name_to_lambda_node.insert(std::make_pair(alias, node));
} }
IdentifierResolveScope & scope; IdentifierResolveScope & scope;