Skip to content

Conversation

@aokolnychyi
Copy link
Contributor

Our JavaHashes are inconsistent in handling nulls. Specifically, only CharSequenceHash currently handles nulls correctly and all others fail with a NPE. In addition, our StructLike collections don't handle nulls too. It is possible to add a null object but never retrieve it.

@aokolnychyi
Copy link
Contributor Author

Copy link
Member

@RussellSpitzer RussellSpitzer left a comment

Choose a reason for hiding this comment

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

LGTM

@rdblue rdblue merged commit 30639ef into apache:master Aug 3, 2021
@rdblue
Copy link
Contributor

rdblue commented Aug 3, 2021

Good catch, @aokolnychyi. Any context on where you found this and what kinds of issues it may have caused?

@aokolnychyi
Copy link
Contributor Author

aokolnychyi commented Aug 3, 2021

I was using this in new writers I have locally to keep track of what partitions we've seen. I had partitions as nulls for unpartitioned writes and it lead to inability to retrieve an existing writer.

Don't have a place in the existing codebase that is affected (did not check, to be precise).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants