mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
Fix extra column after ARRAY JOIN optimization.
This commit is contained in:
parent
c882bdc88e
commit
77c143aa23
@ -1513,8 +1513,7 @@ ActionsDAG::SplitResult ActionsDAG::splitActionsBeforeArrayJoin(const NameSet &
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto res = split(split_nodes);
|
auto res = split(split_nodes);
|
||||||
/// Do not remove array joined columns if they are not used.
|
res.second->project_input = project_input;
|
||||||
/// res.first->project_input = false;
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,3 +28,8 @@ WHERE number IN
|
|||||||
SELECT number
|
SELECT number
|
||||||
FROM numbers(5)
|
FROM numbers(5)
|
||||||
) order by label, number;
|
) order by label, number;
|
||||||
|
|
||||||
|
SELECT NULL FROM
|
||||||
|
(SELECT [1048575, NULL] AS ax, 2147483648 AS c) t1 ARRAY JOIN ax
|
||||||
|
INNER JOIN (SELECT NULL AS c) t2 USING (c);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user