ClickHouse/src/Interpreters/replaceAliasColumnsInQuery.cpp

17 lines
536 B
C++
Raw Normal View History

2020-12-12 16:42:15 +00:00
#include <Interpreters/replaceAliasColumnsInQuery.h>
#include <Interpreters/ColumnAliasesVisitor.h>
#include <Storages/ColumnsDescription.h>
#include <Parsers/ASTSelectQuery.h>
namespace DB
{
2021-06-01 12:20:52 +00:00
void replaceAliasColumnsInQuery(ASTPtr & ast, const ColumnsDescription & columns, const NameSet & forbidden_columns, ContextPtr context)
2020-12-12 16:42:15 +00:00
{
ColumnAliasesVisitor::Data aliases_column_data(columns, forbidden_columns, context);
ColumnAliasesVisitor aliases_column_visitor(aliases_column_data);
aliases_column_visitor.visit(ast);
2020-12-12 16:42:15 +00:00
}
}