ClickHouse/dbms/src/Parsers/ASTQualifiedAsterisk.cpp

20 lines
460 B
C++
Raw Normal View History

#include <Parsers/ASTQualifiedAsterisk.h>
namespace DB
{
String ASTQualifiedAsterisk::getColumnName() const
{
const auto & qualifier = children.at(0);
return qualifier->getColumnName() + ".*";
}
void ASTQualifiedAsterisk::formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
{
const auto & qualifier = children.at(0);
qualifier->formatImpl(settings, state, frame);
settings.ostr << ".*";
}
}