ClickHouse/dbms/src/Parsers/ASTSubquery.cpp

14 lines
257 B
C++
Raw Normal View History

2017-07-26 01:21:19 +00:00
#include <Parsers/ASTSubquery.h>
namespace DB
{
String ASTSubquery::getColumnNameImpl() const
2017-07-26 01:21:19 +00:00
{
/// This is a hack. We use alias, if available, because otherwise tree could change during analysis.
return alias.empty() ? getTreeID() : alias;
}
}