1#include <Parsers/ASTAsterisk.h>
2#include <IO/WriteBuffer.h>
3
4namespace DB
5{
6
7ASTPtr ASTAsterisk::clone() const
8{
9 auto clone = std::make_shared<ASTAsterisk>(*this);
10 clone->cloneChildren();
11 return clone;
12}
13
14void ASTAsterisk::appendColumnName(WriteBuffer & ostr) const { ostr.write('*'); }
15
16void ASTAsterisk::formatImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const
17{
18 settings.ostr << "*";
19}
20
21}
22