mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
clickhouse: fixed aliases in subqueries [#CONV-6727].
This commit is contained in:
parent
4ed6c86648
commit
bebe6932fd
@ -521,7 +521,7 @@ void Expression::getSampleBlockImpl(ASTPtr ast, Block & res)
|
||||
{
|
||||
if (ident->kind == ASTIdentifier::Column)
|
||||
{
|
||||
col.name = ident->name;
|
||||
col.name = ident->getAlias();
|
||||
col.type = ident->type;
|
||||
res.insert(col);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user