wangyum opened a new pull request #29642: URL: https://github.com/apache/spark/pull/29642
### What changes were proposed in this pull request? Support push down `GreaterThanOrEqual` minimum value and `LessThanOrEqual` maximum value when its values exceeds `spark.sql.optimizer.inSetRewriteMinMaxThreshold`. For example: ```sql SELECT * FROM t WHERE id IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15) ``` We will push down `id >= 1 and id <= 15`. Impala also has this improvement: https://issues.apache.org/jira/browse/IMPALA-3654 ### Why are the changes needed? Improve query performance. Tests show that performance can be improved by 13.9 times for Parquet file format and 41.9 times for CSV file format . ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Unit test and [benchmark test](https://github.com/apache/spark/pull/29642#issuecomment-738661573). -- 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]
