Update InterpreterSelectQuery.cpp

This commit is contained in:
alexey-milovidov 2018-08-05 08:29:12 +03:00 committed by GitHub
parent d61c53fc3e
commit 05c7a1971d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -661,11 +661,9 @@ QueryProcessingStage::Enum InterpreterSelectQuery::executeFetchColumns(Pipeline
else if (interpreter_subquery) else if (interpreter_subquery)
{ {
/// Subquery. /// Subquery.
/// If we need less number of columns that subquery have - update the interpreter. /// If we need less number of columns that subquery have - update the interpreter.
if (required_columns.size() < source_header.columns()) if (required_columns.size() < source_header.columns())
{ {
interpreter_subquery = std::make_unique<InterpreterSelectWithUnionQuery>( interpreter_subquery = std::make_unique<InterpreterSelectWithUnionQuery>(
query.table(), getSubqueryContext(context), required_columns, QueryProcessingStage::Complete, subquery_depth + 1, only_analyze); query.table(), getSubqueryContext(context), required_columns, QueryProcessingStage::Complete, subquery_depth + 1, only_analyze);