ClickHouse/src/Parsers/ASTQualifiedAsterisk.cpp
2022-11-30 02:23:26 +00:00

26 lines
560 B
C++

#include <Parsers/ASTQualifiedAsterisk.h>
#include <IO/WriteHelpers.h>
#include <IO/Operators.h>
namespace DB
{
void ASTQualifiedAsterisk::appendColumnName(WriteBuffer & ostr) const
{
qualifier->appendColumnName(ostr);
writeCString(".*", ostr);
}
void ASTQualifiedAsterisk::formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
{
qualifier->formatImpl(settings, state, frame);
settings.ostr << ".*";
if (transformers)
{
transformers->formatImpl(settings, state, frame);
}
}
}