1 | #pragma once |
---|---|
2 | |
3 | #include <Core/NamesAndTypes.h> |
4 | #include <Interpreters/DatabaseAndTableWithAlias.h> |
5 | |
6 | namespace DB |
7 | { |
8 | |
9 | struct ASTTableExpression; |
10 | class ASTSelectQuery; |
11 | class Context; |
12 | |
13 | NameSet removeDuplicateColumns(NamesAndTypesList & columns); |
14 | |
15 | std::vector<const ASTTableExpression *> getTableExpressions(const ASTSelectQuery & select_query); |
16 | const ASTTableExpression * getTableExpression(const ASTSelectQuery & select, size_t table_number); |
17 | ASTPtr extractTableExpression(const ASTSelectQuery & select, size_t table_number); |
18 | |
19 | NamesAndTypesList getColumnsFromTableExpression(const ASTTableExpression & table_expression, const Context & context); |
20 | std::vector<TableWithColumnNames> getDatabaseAndTablesWithColumnNames(const std::vector<const ASTTableExpression *> & table_expressions, |
21 | const Context & context, bool remove_duplicates = true); |
22 | |
23 | } |
24 |