1#pragma once
2
3#include <Parsers/IParserBase.h>
4
5namespace DB
6{
7
8/// Parse either a partition value as a (possibly compound) literal or a partition ID.
9/// Produce ASTPartition.
10class ParserPartition : public IParserBase
11{
12protected:
13 const char * getName() const override { return "partition"; }
14 bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
15};
16
17}
18