zhztheplayer opened a new pull request, #9312:
URL: https://github.com/apache/incubator-gluten/pull/9312
`spark.sql.extensions=org.apache.gluten.extension.GlutenSessionExtensions`
should be set automatically when Spark driver started with Gluten. However if
user explicitly sets it, unexpected errors will be caused. For example:
```
java.lang.UnsupportedOperationException: This operator doesn't support
doTransform with SubstraitContext.
at
org.apache.gluten.execution.TransformSupport.doTransform(WholeStageTransformer.scala:192)
at
org.apache.gluten.execution.TransformSupport.doTransform$(WholeStageTransformer.scala:190)
at
org.apache.gluten.execution.WholeStageTransformer.doTransform(WholeStageTransformer.scala:222)
at
org.apache.gluten.execution.TransformSupport.$anonfun$transform$1(WholeStageTransformer.scala:185)
at
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
at
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
at
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
```
The patch enhances relevant logic to handle this case correctly.
--
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]