Add converting logic to ActionsDAG.

This commit is contained in:
Nikolai Kochetov 2020-11-17 18:57:11 +03:00
parent a7e1fb11c6
commit fd3ee6d8af

View File

@ -749,6 +749,8 @@ ActionsDAGPtr ActionsDAG::splitActionsBeforeArrayJoin(const NameSet & array_join
input_node.result_type = child->result_type;
input_node.result_name = child->result_name; // getUniqueNameForIndex(index, child->result_name);
child_data.to_this = &this_nodes.emplace_back(std::move(input_node));
if (child->type != ActionType::INPUT)
new_inputs.push_back(child_data.to_this);
/// This node is needed for current action, so put it to index also.
@ -781,6 +783,8 @@ ActionsDAGPtr ActionsDAG::splitActionsBeforeArrayJoin(const NameSet & array_join
input_node.result_type = node.result_type;
input_node.result_name = node.result_name;
cur_data.to_this = &this_nodes.emplace_back(std::move(input_node));
if (copy.type != ActionType::INPUT)
new_inputs.push_back(cur_data.to_this);
}
}