mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Update InterpreterSelectQuery.cpp
This commit is contained in:
parent
d61c53fc3e
commit
05c7a1971d
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user