2017-09-06 20:34:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Parsers/IAST.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;
|
2022-03-31 09:50:07 +00:00
|
|
|
bool all = false;
|
2017-09-06 20:34:26 +00:00
|
|
|
|
2018-12-07 12:34:40 +00:00
|
|
|
String getID(char) const override;
|
2017-09-06 20:34:26 +00:00
|
|
|
ASTPtr clone() const override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|