zhztheplayer commented on PR #12151:
URL: https://github.com/apache/gluten/pull/12151#issuecomment-5128672471
@brijrajk Thanks.
Then my suggestion is to add a new API `injectPre`, which modifies the
original plan and won't be reverted when whole stage fallback is induced. E.g,:
```scala
injector.injectPre(c =>
BloomFilterMightContainJointRewriteRule(
c.session,
c.caller.isBloomFilterStatFunction()))
```
and
```scala
val rewrittenPlan =
transformPlan("pre", preRules(call), inputPlan)
val suggestedPlan =
transformPlan("transform", transformRules(call), rewrittenPlan)
val finalPlan =
transformPlan(
"fallback",
fallbackPolicies(call).map(_(rewrittenPlan)),
suggestedPlan)
```
What do you think?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]