You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-33538][SQL] Directly push IN/NOT predicates to the Hive Metastore
### What changes were proposed in this pull request?
This PR refactors the way IN and NOT IN predicates are converted in `HiveShim`. Previously, these predicates were expanded into chains of OR/AND comparisons (e.g., `a = 1` or `a = 2`). This change updates the logic to use SQL-native IN and NOT IN syntax (e.g., `a in (1, 2)`), improving readability and possibly query performance.
### Why are the changes needed?
Efficiency:
Many SQL engines optimize IN/NOT IN natively, which can improve performance and reduce query complexity.
Maintainability:
Simplifies predicate generation logic, making the codebase easier to maintain and extend.
### Does this PR introduce _any_ user-facing change?
No user-facing changes; this is an internal refactor that affects query generation logic.
### How was this patch tested?
Existing unit tests for predicate conversion and query generation should be sufficient to cover the updated logic.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes#51132 from yuexing/SPARK-33538-hive.
Lead-authored-by: xingyue <[email protected]>
Co-authored-by: Yue <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
0 commit comments