mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-29 13:10:48 +00:00
Fixed test [#CLICKHOUSE-2]
This commit is contained in:
parent
05be50de89
commit
c73f5d5e95
@ -6,6 +6,10 @@ namespace DB
|
||||
|
||||
String ASTSubquery::getColumnNameImpl() const
|
||||
{
|
||||
/// This is a hack. We use alias, if available, because otherwise tree could change during analysis.
|
||||
if (!alias.empty())
|
||||
return alias;
|
||||
|
||||
Hash hash = getTreeHash();
|
||||
return "__subquery_" + toString(hash.first) + "_" + toString(hash.second);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user