-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-9460] Fix prefix generation for UTF8String. #7789
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
|
Yes, this change looks good to me, for a "semantically safe bet" on the object layout. |
|
Test build #39027 has finished for PR 7789 at commit
|
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.
Should we check the endian-ness? I think UNSAFE.getLong use the native endian.
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.
this currently won't work for big endian. can somebody from ibm submit a patch to make it work? I don't have the environment to test.
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.
Maybe we can just merge this one, add a comment and create a JIRA for big-endian.
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.
Yup that's a good idea.
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.
Here's the ticket https://issues.apache.org/jira/browse/SPARK-9483
|
Test build #39077 has finished for PR 7789 at commit
|
|
Merging this since the failed test is unrelated. |
Previously we could be getting garbage data if the number of bytes is 0, or on JVMs that are 4 byte aligned, or when compressedoops is on.