You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "beliefer (via GitHub)" <gi...@apache.org> on 2025/08/27 12:09:15 UTC

[I] Simplify StrictRule due to transform up [incubator-gluten]

beliefer opened a new issue, #10559:
URL: https://github.com/apache/incubator-gluten/issues/10559

   ### Description
   
   The implementation of StrictRule used to replaces the children with `DummyLeafExec` s so they become inaccessible afterward.
   
   But there exists a conflict that `LegacyOffload` applies each rule with `transformUp`.
   ```
   class LegacyOffload(rules: Seq[OffloadSingleNode]) extends Rule[SparkPlan] with LogLevelUtil {
     def apply(plan: SparkPlan): SparkPlan = {
       val out =
         rules.foldLeft(plan)((p, rule) => p.transformUp { case p => rule.offload(p) })
       out
     }
   }
   ```
   In other words, the class `DummyLeafExec` is invalid due to the mechanism of `transformUp`.
   
   ### Gluten version
   
   main branch


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org