-
Notifications
You must be signed in to change notification settings - Fork 3k
Core: Fix NPE during conflict handling of NULL partitions #10680
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
Conversation
Partition values can be NULLs, or we can have NULLs because of the VOID transforms. If a conflict is found in such partitions we get a NullPointerException instead of a proper error message.
deniskuzZ
left a comment
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
|
Closing and repoening PR to trigger CI build. The current failure is unrelated. |
ajantha-bhat
left a comment
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.
|
It looks good to me indeed. |
Fokko
left a comment
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.
Thanks for fixing this @boroknagyz, thanks for adding this to the milestone @ajantha-bhat, and thanks for the review @ajantha-bhat & @jbonofre
core/src/test/java/org/apache/iceberg/TestReplacePartitions.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
core/src/test/java/org/apache/iceberg/TestReplacePartitions.java
Outdated
Show resolved
Hide resolved
|
Thanks for fixing this @boroknagyz , and thanks for the review @ajantha-bhat, @jbonofre, @deniskuzZ and @nastra |
* Core: Fix NPE during conflict handling of NULL partitions Partition values can be NULLs, or we can have NULLs because of the VOID transforms. If a conflict is found in such partitions we get a NullPointerException instead of a proper error message. * Fix style issues * Use String.valueOf() * Reduce visibility of constant Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com> * Indentation * Update core/src/main/java/org/apache/iceberg/util/PartitionSet.java --------- Co-authored-by: Fokko Driesprong <fokko@apache.org> Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
* Core: Fix NPE during conflict handling of NULL partitions Partition values can be NULLs, or we can have NULLs because of the VOID transforms. If a conflict is found in such partitions we get a NullPointerException instead of a proper error message. * Fix style issues * Use String.valueOf() * Reduce visibility of constant Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com> * Indentation * Update core/src/main/java/org/apache/iceberg/util/PartitionSet.java --------- Co-authored-by: Fokko Driesprong <fokko@apache.org> Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
Partition values can be NULLs, or we can have NULLs because of the VOID transforms. If a conflict is found in such partitions we get a NullPointerException instead of a proper error message.