mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
13482af4ee
- to be replaced by std::string_view - suggested in #39262
27 lines
489 B
C++
27 lines
489 B
C++
#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;
|
|
bool all = false;
|
|
|
|
String getID(char) const override;
|
|
ASTPtr clone() const override;
|
|
|
|
protected:
|
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
};
|
|
|
|
}
|