ClickHouse/src/Parsers/ASTWindowDefinition.h

41 lines
725 B
C++
Raw Normal View History

2021-01-12 18:34:35 +00:00
#pragma once
#include <Parsers/IAST.h>
namespace DB
{
struct ASTWindowDefinition : public IAST
{
ASTPtr partition_by;
ASTPtr order_by;
2021-01-13 19:29:52 +00:00
2021-01-12 18:34:35 +00:00
ASTPtr clone() const override;
String getID(char delimiter) const override;
2021-01-13 19:29:52 +00:00
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
std::string getDefaultWindowName() const;
2021-01-12 18:34:35 +00:00
};
struct ASTWindowListElement : public IAST
{
String name;
// ASTWindowDefinition
ASTPtr definition;
2021-01-13 19:29:52 +00:00
2021-01-12 18:34:35 +00:00
ASTPtr clone() const override;
String getID(char delimiter) const override;
2021-01-13 19:29:52 +00:00
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
2021-01-12 18:34:35 +00:00
};
}