aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/ParserPartition.h
blob: 2bb7048fd81c43932c1a52f966259c9ed797a444 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <Parsers/IParserBase.h>

namespace DB
{

/// Parse either a partition value as a (possibly compound) literal or a partition ID.
/// Produce ASTPartition.
class ParserPartition : public IParserBase
{
protected:
    const char * getName() const override { return "partition"; }
    bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
};

}