ClickHouse/src/Parsers/ASTWindowDefinition.h
2021-01-30 04:16:44 +03:00

45 lines
794 B
C++

#pragma once
#include <Interpreters/WindowDescription.h>
#include <Parsers/IAST.h>
namespace DB
{
struct ASTWindowDefinition : public IAST
{
ASTPtr partition_by;
ASTPtr order_by;
WindowFrame frame;
ASTPtr clone() const override;
String getID(char delimiter) const override;
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
std::string getDefaultWindowName() const;
};
struct ASTWindowListElement : public IAST
{
String name;
// ASTWindowDefinition
ASTPtr definition;
ASTPtr clone() const override;
String getID(char delimiter) const override;
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
};
}