wangyum opened a new pull request, #36755:
URL: https://github.com/apache/spark/pull/36755
### What changes were proposed in this pull request?
This PR moves `RewritePredicateSubquery` into `InjectRuntimeFilter`.
### Why are the changes needed?
Reduce the number of `RewritePredicateSubquery` runs, since
`spark.sql.optimizer.runtimeFilter.semiJoinReduction.enabled` is disabled by
default. For example:
```
build/sbt "sql/testOnly *TPCDSQuerySuite"
```
Before this PR:
```
...
org.apache.spark.sql.catalyst.optimizer.RewritePredicateSubquery
17978319 / 31026106 26 / 624
...
```
After this PR:
```
...
org.apache.spark.sql.catalyst.optimizer.RewritePredicateSubquery
16680901 / 18994542 26 / 312
...
```
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Existing test.
--
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]