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