Skip to content

Commit

Permalink
Update gluten-substrait/src/main/scala/org/apache/gluten/execution/Wh…
Browse files Browse the repository at this point in the history
…oleStageTransformer.scala

Co-authored-by: Hongze Zhang <[email protected]>
  • Loading branch information
ivoson and zhztheplayer authored Sep 3, 2024
1 parent ffe058a commit 44bf8e9
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,11 @@ case class WholeStageTransformer(child: SparkPlan, materializeInput: Boolean = f
plan: SparkPlan,
buffer: ArrayBuffer[TransformSupport]): Unit = {
plan match {
case node: TransformSupport =>
if (plan.children.forall(!_.isInstanceOf[TransformSupport])) {
case node: TransformSupport if node.children.forall(!_.isInstanceOf[TransformSupport]) =>
buffer.append(node)
} else {
plan.children
.filter(_.isInstanceOf[TransformSupport])
case node: TransformSupport =>
node.children
.foreach(collectTransformSupportLeaves(_, buffer))
}
case _ =>
}
}
Expand Down

0 comments on commit 44bf8e9

Please sign in to comment.