ClickHouse/src/Parsers/ASTStatisticDeclaration.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
644 B
C++
Raw Normal View History

#pragma once
#include <Parsers/IAST.h>
namespace DB
{
class ASTFunction;
/** name BY columns TYPE typename(args) in create query
*/
class ASTStatisticDeclaration : public IAST
{
public:
2023-09-08 00:27:17 +00:00
IAST * columns;
/// TODO type should be a list of ASTFunction, for example, 'tdigest(256), hyperloglog(128)', etc.
2023-09-04 13:51:00 +00:00
String type;
/** Get the text that identifies this element. */
String getID(char) const override { return "Stat"; }
2023-09-08 00:27:17 +00:00
std::vector<String> getColumnNames() const;
ASTPtr clone() const override;
void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override;
};
}