mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
fix transformQueryForExternalDatabase()
This commit is contained in:
parent
cdb9f456ee
commit
380ab37c9b
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user