Skip to content

Commit

Permalink
[GLUTEN-4723]Fix issue of actions dag split (#482)
Browse files Browse the repository at this point in the history
(cherry picked from commit 21fa961)
  • Loading branch information
taiyang-li authored and kyligence-git committed Nov 30, 2024
1 parent 42dc298 commit 6a7c14f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Interpreters/ActionsDAG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1876,6 +1876,10 @@ ActionsDAG::SplitResult ActionsDAG::split(std::unordered_set<const Node *> split
}
}

/// All input nodes are needed by split to make sure first DAG and initial DAG have equal inputs,
for (const auto * input: inputs)
data[input].needed_by_split_node = true;

/// DFS. Move nodes to one of the DAGs.
for (const auto & node : nodes)
{
Expand Down

0 comments on commit 6a7c14f

Please sign in to comment.