zhztheplayer opened a new issue, #5656: URL: https://github.com/apache/incubator-gluten/issues/5656
### Backend VL (Velox) ### Bug description We usually do a [tentative offload](https://github.com/apache/incubator-gluten/blob/c9018cdd884c5e93a171ba1561888e719026898c/gluten-core/src/main/scala/org/apache/gluten/execution/BasicPhysicalOperatorTransformer.scala#L121-L127) while validating query plans. Given that in Gluten, offloading a subquery expression may cause `collect` to be called immediately ([example](https://github.com/apache/incubator-gluten/blob/c9018cdd884c5e93a171ba1561888e719026898c/gluten-core/src/main/scala/org/apache/gluten/expression/ScalarSubqueryTransformer.scala#L37)), thus plan validation always executes subqueries, thus explaining always executes subqueries. This is not a big issue as of now but can be considered something counter-intuitive. We may need to rework the validation procedure a little bit to fix this. ### Spark version None ### Spark configurations _No response_ ### System information _No response_ ### Relevant logs _No response_ -- 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]
