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)
(cherry picked from commit 0fda4b4)
(cherry picked from commit e0b6f76)
(cherry picked from commit 7de641d)
(cherry picked from commit 0cd544c)
(cherry picked from commit 531aa82)
(cherry picked from commit 9841cf2)
(cherry picked from commit 3ddade3)
(cherry picked from commit 1240fda)
(cherry picked from commit 4c65d31)
(cherry picked from commit 1048875)
  • Loading branch information
taiyang-li authored and kyligence-git committed Apr 11, 2024
1 parent e0cc41e commit 7485231
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 @@ -1762,6 +1762,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 7485231

Please sign in to comment.