Skip to content

Conversation

@findepi
Copy link
Member

@findepi findepi commented Jul 22, 2021

Fixes #2837

@findepi
Copy link
Member Author

findepi commented Jul 22, 2021

"https://github.com/google/guava/issues/5648. Please resolve the TODO in BucketString.hash " +
"and remove this assertion",
hashBytes(asBytes),
MURMUR3.hashString(string, StandardCharsets.UTF_8).asInt());
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Looks like indentation is off for this statement.

Copy link
Member Author

Choose a reason for hiding this comment

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

eventually my IDE is not against me on this :)

fixed

@rdblue
Copy link
Contributor

rdblue commented Jul 22, 2021

Looks good to me. I agree with the choice to detect cases where hashString can't be used since converting the string to bytes will allocate a new ByteBuffer and copy into it.

@rdblue
Copy link
Contributor

rdblue commented Jul 22, 2021

@findepi, looks like I don't have permission to update the indentation in the test. Could you fix that and I'll merge this?

@findepi findepi force-pushed the findepi/bucket-bmp branch from 73801c1 to cb53800 Compare July 22, 2021 17:40
@rdblue rdblue merged commit f960698 into apache:master Jul 22, 2021
@findepi findepi deleted the findepi/bucket-bmp branch July 22, 2021 19:47
@findepi
Copy link
Member Author

findepi commented Jul 22, 2021

Thanks @rdblue

@rdblue
Copy link
Contributor

rdblue commented Jul 22, 2021

Thanks for fixing this, @findepi! Nice work.

minchowang pushed a commit to minchowang/iceberg that referenced this pull request Aug 2, 2021
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.

Incorrect bucket value calculated for string with non-BMP characters

2 participants