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 Dec 17, 2024
1 parent e0ab4d8 commit 2048027
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 @@ -1874,6 +1874,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 2048027

Please sign in to comment.