Zouxxyy commented on PR #10714:
URL:
https://github.com/apache/incubator-gluten/pull/10714#issuecomment-3299659251
I checked that `GlutenWriterColumnarRules` is almost entirely v1 logic.
Maybe we should split it into a separate rule, I can modify it like this
```scala
object EnableColumnarAQEWrite extends Rule[SparkPlan] {
private def updateIfAQE(query: SparkPlan): SparkPlan = query match {
case aqe: AdaptiveSparkPlanExec =>
aqe.copy(supportsColumnar = true)
case _ =>
query
}
override def apply(plan: SparkPlan): SparkPlan = plan match {
case a: isColumnarV2TableWriteExec =>
a.copy(query = updateIfAQE(a.query))
case other => other
}
}
```
--
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]