Update complie expressions.

This commit is contained in:
Nikolai Kochetov 2020-11-05 21:09:58 +03:00
parent b2155c55ff
commit 513779afb0

View File

@ -872,7 +872,7 @@ void ActionsDAG::compileFunctions()
if (should_compile) if (should_compile)
{ {
std::vector<Node *> new_children; std::vector<Node *> new_children;
auto dag = getCompilableDAG(frame.node, new_children); auto dag = getCompilableDAG(frame.node, new_children, used_in_result);
if (dag.size() != cur.num_inlineable_nodes) if (dag.size() != cur.num_inlineable_nodes)
throw Exception(ErrorCodes::LOGICAL_ERROR, throw Exception(ErrorCodes::LOGICAL_ERROR,
"Unexpected number of nodes in compile expression DAG. " "Unexpected number of nodes in compile expression DAG. "