2011-08-28 08:50:27 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <DB/Parsers/IAST.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class ASTAsterisk : public IAST
|
|
|
|
{
|
|
|
|
public:
|
2014-12-17 15:26:24 +00:00
|
|
|
ASTAsterisk() = default;
|
2011-08-28 08:50:27 +00:00
|
|
|
ASTAsterisk(StringRange range_) : IAST(range_) {}
|
2014-12-17 15:26:24 +00:00
|
|
|
String getID() const override { return "Asterisk"; }
|
2016-05-28 15:42:22 +00:00
|
|
|
ASTPtr clone() const override { return std::make_shared<ASTAsterisk>(*this); }
|
2014-12-17 15:26:24 +00:00
|
|
|
String getColumnName() const override { return "*"; }
|
2015-08-05 21:38:31 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override
|
|
|
|
{
|
|
|
|
settings.ostr << "*";
|
|
|
|
}
|
2011-08-28 08:50:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|