kazuyukitanimura opened a new pull request #35156: URL: https://github.com/apache/spark/pull/35156
### What changes were proposed in this pull request? This PR proposes to improve `DataSourceV2Strategy` to be able to push down boolean column filters. Currently boolean column filters do not get pushed down and may cause unnecessary IO. This is a follow up PR of the same change for (V1) `DataSourceStrategy`. ### Why are the changes needed? The following query does not push down the filter in the current implementation ``` SELECT * FROM t WHERE boolean_field ``` although the following query pushes down the filter as expected. ``` SELECT * FROM t WHERE boolean_field = true ``` This is because the Physical Planner (`DataSourceV2Strategy`) currently only pushes down limited expression patterns like`EqualTo`. It is fair for Spark SQL users to expect `boolean_field` performs the same as `boolean_field = true`. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Added unit tests -- 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]
