ClickHouse/src/Parsers/ASTPartition.h

28 lines
517 B
C++
Raw Normal View History

#pragma once
#include <Parsers/IAST.h>
2021-10-02 07:13:14 +00:00
#include <base/StringRef.h>
namespace DB
{
/// Either a (possibly compound) expression representing a partition value or a partition ID.
class ASTPartition : public IAST
{
public:
ASTPtr value;
size_t fields_count = 0;
String id;
bool all = false;
String getID(char) const override;
ASTPtr clone() const override;
protected:
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
};
}