Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Dec 18, 2024
1 parent a0d3606 commit 9bad173
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ class CometSparkSessionExtensions
override def apply(plan: SparkPlan): SparkPlan = {
val eliminatedPlan = plan transformUp {
case ColumnarToRowExec(sparkToColumnar: CometSparkToColumnarExec) => sparkToColumnar.child
case c @ ColumnarToRowExec(child) =>
case c @ ColumnarToRowExec(child) if child.exists(_.isInstanceOf[CometPlan]) =>
val op = CometColumnarToRowExec(child)
if (c.logicalLink.isEmpty) {
op.unsetTagValue(SparkPlan.LOGICAL_PLAN_TAG)
Expand Down

0 comments on commit 9bad173

Please sign in to comment.