fix transformQueryForExternalDatabase()

This commit is contained in:
Artem Zuikov 2020-02-29 23:27:13 +03:00
parent cdb9f456ee
commit 380ab37c9b

View File

@ -147,7 +147,7 @@ String transformQueryForExternalDatabase(
const Context & context)
{
auto clone_query = query.clone();
auto syntax_result = SyntaxAnalyzer(context).analyze(clone_query, available_columns);
auto syntax_result = SyntaxAnalyzer(context).analyzeSelect(clone_query, available_columns);
const Names used_columns = syntax_result->requiredSourceColumns();
auto select = std::make_shared<ASTSelectQuery>();