#pragma once #include namespace DB { /** List of single or multiple JOIN-ed tables or subqueries in SELECT query, with ARRAY JOINs and SAMPLE, FINAL modifiers. */ class ParserTablesInSelectQuery : public IParserBase { protected: const char * getName() const { return "table, table function, subquery or list of joined tables"; } bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected); }; class ParserTablesInSelectQueryElement : public IParserBase { public: ParserTablesInSelectQueryElement(bool is_first_) : is_first(is_first_) {} protected: const char * getName() const { return "table, table function, subquery or list of joined tables"; } bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected); private: bool is_first; }; class ParserTableExpression : public IParserBase { protected: const char * getName() const { return "table or subquery or table function"; } bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected); }; class ParserArrayJoin : public IParserBase { protected: const char * getName() const { return "array join"; } bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected); }; }