#pragma once #include namespace DB { class ASTFunction; /** name BY columns TYPE typename(args) in create query */ class ASTStatisticsDeclaration : public IAST { public: IAST * columns; IAST * types; /** Get the text that identifies this element. */ String getID(char) const override { return "Stat"; } std::vector getColumnNames() const; std::vector getTypeNames() const; ASTPtr clone() const override; void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override; }; }