Core: Fix NPE during conflict handling of NULL partitions#10680
Merged
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
reviewed
Jul 11, 2024
Member
|
Closing and repoening PR to trigger CI build. The current failure is unrelated. |
ajantha-bhat
approved these changes
Jul 12, 2024
jbonofre
approved these changes
Jul 12, 2024
Member
|
It looks good to me indeed. |
Fokko
approved these changes
Jul 12, 2024
Fokko
left a comment
Contributor
There was a problem hiding this comment.
Thanks for fixing this @boroknagyz, thanks for adding this to the milestone @ajantha-bhat, and thanks for the review @ajantha-bhat & @jbonofre
nastra
reviewed
Jul 12, 2024
Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
Fokko
reviewed
Jul 12, 2024
nastra
reviewed
Jul 12, 2024
Contributor
|
Thanks for fixing this @boroknagyz , and thanks for the review @ajantha-bhat, @jbonofre, @deniskuzZ and @nastra |
jasonf20
pushed a commit
to jasonf20/iceberg
that referenced
this pull request
Aug 4, 2024
* 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>
zachdisc
pushed a commit
to zachdisc/iceberg
that referenced
this pull request
Dec 23, 2024
* 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>
cbb330
pushed a commit
to cbb330/iceberg
that referenced
this pull request
Jun 4, 2026
Backport note: the production fix (PartitionSet.java) was cherry-picked unchanged. The two added tests (testValidateWithNullPartition, testValidateWithVoidTransform) were adapted to the JUnit 4 test harness used by TestReplacePartitions in 1.5.2.x (@testtemplate -> @test, static assertThatThrownBy -> Assertions.assertThatThrownBy, Files.createTempDirectory(temp, ...) -> temp.newFolder()). Test logic and assertions are unchanged. Core: Fix NPE during conflict handling of NULL partitions (#10680) * 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> (cherry picked from commit ed228f7)
jiang95-dev
pushed a commit
to linkedin/iceberg
that referenced
this pull request
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.