mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 11:33:46 +00:00
28 lines
608 B
C++
28 lines
608 B
C++
#include <Parsers/ASTAsterisk.h>
|
|
#include <IO/WriteBuffer.h>
|
|
#include <IO/Operators.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
ASTPtr ASTAsterisk::clone() const
|
|
{
|
|
auto clone = std::make_shared<ASTAsterisk>(*this);
|
|
clone->cloneChildren();
|
|
return clone;
|
|
}
|
|
|
|
void ASTAsterisk::appendColumnName(WriteBuffer & ostr) const { ostr.write('*'); }
|
|
|
|
void ASTAsterisk::formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
|
|
{
|
|
settings.ostr << "*";
|
|
for (const auto & child : children)
|
|
{
|
|
settings.ostr << ' ';
|
|
child->formatImpl(settings, state, frame);
|
|
}
|
|
}
|
|
|
|
}
|