Fix possible error 'Cannot convert column Function to mask'

This commit is contained in:
avogar 2022-02-08 18:23:43 +03:00
parent 6608c69775
commit 08c009ab50
3 changed files with 5 additions and 2 deletions

View File

@ -159,8 +159,8 @@ static void setLazyExecutionInfo(
const ActionsDAGReverseInfo::NodeInfo & node_info = reverse_info.nodes_info[reverse_info.reverse_index.at(node)];
/// If node is used in result, we can't enable lazy execution.
if (node_info.used_in_result)
/// If node is used in result or it doesn't have parents, we can't enable lazy execution.
if (node_info.used_in_result || node_info.parents.empty())
lazy_execution_info.can_be_lazy_executed = false;
/// To fill lazy execution info for current node we need to create it for all it's parents.

View File

@ -0,0 +1,2 @@
SELECT 1 FROM (SELECT arrayJoin(if(empty(range(number)), [1], [2])) from numbers(1));