mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
fix
This commit is contained in:
parent
4bf5547350
commit
3225c7186c
@ -144,11 +144,12 @@ public:
|
||||
const auto * identifier = ast->as<ASTIdentifier>();
|
||||
if (identifier && data.name_to_component_id.contains(identifier->name()))
|
||||
{
|
||||
const auto & name = identifier->name();
|
||||
const String & name = identifier->name();
|
||||
const auto component_id = data.name_to_component_id.at(name);
|
||||
ast = data.id_to_expression_map.at(component_id)->clone();
|
||||
auto new_ast = data.id_to_expression_map.at(component_id)->clone();
|
||||
if (data.is_select)
|
||||
ast->setAlias(data.old_name.at(name));
|
||||
new_ast->setAlias(data.old_name.at(name));
|
||||
ast = new_ast;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user