-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HIVE-28705: Fix Data Inconsistency due to missing 'IS NOT? TRUE/FALSE' parsing in Partition Filter Pruning #5614
Conversation
0cca4c7
to
9e37ed6
Compare
9e37ed6
to
3570e41
Compare
@ayushtkn @deniskuzZ @okumin Can you help to review the PR |
@zabetak Can you help to review the PR. Thanks |
I'm willing to review this PR but cannot immediately do so. I haven't used HMS for years and need more time to familiarize myself. |
@Indhumathi27 By the way, you may update either the title of this pull request or the title of the JIRA ticket |
@deniskuzZ @okumin |
...etastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/PartFilterVisitor.java
Outdated
Show resolved
Hide resolved
...etastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/PartFilterVisitor.java
Outdated
Show resolved
Hide resolved
...etastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/PartFilterVisitor.java
Outdated
Show resolved
Hide resolved
...etastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/PartFilterVisitor.java
Outdated
Show resolved
Hide resolved
...etastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/PartFilterVisitor.java
Show resolved
Hide resolved
...etastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/PartFilterVisitor.java
Show resolved
Hide resolved
...etastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/PartFilterVisitor.java
Outdated
Show resolved
Hide resolved
3570e41
to
b0382ac
Compare
...etastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/PartFilterVisitor.java
Outdated
Show resolved
Hide resolved
...etastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/PartFilterVisitor.java
Outdated
Show resolved
Hide resolved
b0382ac
to
e0a9b7f
Compare
Thanks @deniskuzZ for the review and suggestions. I have handled the same. Please check |
e0a9b7f
to
fc8dfd0
Compare
fc8dfd0
to
ffbca90
Compare
/piper build pr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1, thanks @Indhumathi27 for the refactor
pending tests
…' parsing in Partition Filter Pruning
ffbca90
to
2a101e7
Compare
|
@deniskuzZ Pipeline is green. Can you help to merge. Thanks |
What changes were proposed in this pull request?
Added missing support for parsing 'IS NOT? TRUE/FALSE' conditions in partition filter pruning. Specifically, it handles cases where partition filters with boolean expressions such as IS NOT TRUE or IS NOT FALSE are involved, ensuring correct partition pruning behaviour.
Why are the changes needed?
These changes address data inconsistencies in queries involving partition filter pushdown to the Hive Metastore (HMS), especially when dealing with boolean expressions like IS NOT? TRUE or IS NOT? FALSE. Previously, the partition pruning logic failed to correctly interpret these expressions, leading to incorrect results and inefficient query execution. With the new parsing logic, partition pruning now handles these complex boolean conditions properly, ensuring accurate data retrieval and better query performance.
Does this PR introduce any user-facing change?
No
Is the change a dependency upgrade?
No
How was this patch tested?
Test scenarios added