Fixed test [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-02-23 14:35:05 +03:00
parent 05be50de89
commit c73f5d5e95

View File

@ -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);
}