wangyum opened a new pull request #29243: URL: https://github.com/apache/spark/pull/29243
### What changes were proposed in this pull request? This pr add support infer filters from DPP. For [this test suite](https://github.com/apache/spark/blob/69be17bfc3845668fd8f5aed8026c04da4496677/sql/core/src/test/scala/org/apache/spark/sql/DynamicPartitionPruningSuite.scala#L1285-L1297). Table `fact_stats` is partitioned by `store_id` and table `code_stats` is partitioned by `store_id`. DPP add a new predicate: `fact_stats.store_id IN dynamicpruning#2723`. We can infer `code_stats.store_id IN dynamicpruning#2723` base on [`t1.store_id = t2.store_id`](https://github.com/apache/spark/blob/69be17bfc3845668fd8f5aed8026c04da4496677/sql/core/src/test/scala/org/apache/spark/sql/DynamicPartitionPruningSuite.scala#L1294). ### Why are the changes needed? Improve query performance. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Unit 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
