mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 10:22:10 +00:00
45 lines
794 B
C++
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;
|
|
};
|
|
|
|
}
|