mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Fix crash
This commit is contained in:
parent
2962ad10da
commit
63611faffc
@ -1497,10 +1497,11 @@ IdentifierResolveResult QueryAnalyzer::tryResolveIdentifier(const IdentifierLook
|
||||
{
|
||||
auto cte_expression_node_it = scope.cte_name_to_expression.find(full_name);
|
||||
|
||||
auto resolved_node = cte_expression_node_it->second->clone();
|
||||
resolveExpressionNode(resolved_node, scope, false /*allow_lambda_expression*/, false /*allow_table_expression*/);
|
||||
if (cte_expression_node_it != scope.cte_name_to_expression.end())
|
||||
{
|
||||
auto resolved_node = cte_expression_node_it->second->clone();
|
||||
resolveExpressionNode(resolved_node, scope, false /*allow_lambda_expression*/, false /*allow_table_expression*/);
|
||||
|
||||
resolve_result.resolved_identifier = resolved_node;
|
||||
resolve_result.resolve_place = IdentifierResolvePlace::CTE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user