zhztheplayer opened a new pull request, #9802:
URL: https://github.com/apache/incubator-gluten/pull/9802
When overwriting a Spark test class in Gluten, add the trait
`WithQueryPlanListener` to the class inheritance tree, then call APIs on
`planListeners` in the class body to do assertions on all executed query plans
during the test execution. E.g.:
```scala
class Gluten...Suite extends ...Suite with ... with WithQueryPlanListener {
planListeners.assertNoInstanceOf[SortExec]
}
```
In the above code, all the test cases ran from the suite will be ensured not
having the fallen back `SortExec` nodes in the query plan. Exceptions will be
thrown otherwise.
--
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]