Skip to content

Conversation

@boroknagyz
Copy link
Contributor

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.

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.
@github-actions github-actions bot added the core label Jul 11, 2024
Copy link
Member

@deniskuzZ deniskuzZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

@ajantha-bhat
Copy link
Member

Closing and repoening PR to trigger CI build. The current failure is unrelated.

Copy link
Member

@ajantha-bhat ajantha-bhat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Since it is NPE, I think we can have it in 1.6.0
@Fokko, @nastra, @jbonofre: WDYT?

@jbonofre
Copy link
Member

It looks good to me indeed.

@ajantha-bhat ajantha-bhat added this to the Iceberg 1.6.0 milestone Jul 12, 2024
Copy link
Contributor

@Fokko Fokko left a 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

Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
@Fokko Fokko merged commit ed228f7 into apache:main Jul 12, 2024
@Fokko
Copy link
Contributor

Fokko commented Jul 12, 2024

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants