mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
27 lines
787 B
C++
27 lines
787 B
C++
#pragma once
|
|
|
|
#include <Core/NamesAndTypes.h>
|
|
#include <Interpreters/Context_fwd.h>
|
|
#include <Interpreters/DatabaseAndTableWithAlias.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct ASTTableExpression;
|
|
class ASTSelectQuery;
|
|
|
|
using ASTTableExprConstPtrs = std::vector<const ASTTableExpression *>;
|
|
|
|
NameSet removeDuplicateColumns(NamesAndTypesList & columns);
|
|
|
|
ASTTableExprConstPtrs getTableExpressions(const ASTSelectQuery & select_query);
|
|
|
|
const ASTTableExpression * getTableExpression(const ASTSelectQuery & select, size_t table_number);
|
|
|
|
ASTPtr extractTableExpression(const ASTSelectQuery & select, size_t table_number);
|
|
|
|
TablesWithColumns getDatabaseAndTablesWithColumns(
|
|
const ASTTableExprConstPtrs & table_expressions, ContextPtr context, bool include_alias_cols, bool include_materialized_cols);
|
|
|
|
}
|