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
[SPARK-18963] o.a.s.unsafe.types.UTF8StringSuite.writeToOutputStreamIntArray test #16375
Conversation
fails on big endian. Only change byte order on little endian
Test build #70475 has finished for PR 16375 at commit
|
@@ -591,7 +591,11 @@ public void writeToOutputStreamIntArray() throws IOException { | |||
// verify that writes work on objects that are not byte arrays | |||
final ByteBuffer buffer = StandardCharsets.UTF_8.encode("大千世界"); | |||
buffer.position(0); | |||
buffer.order(ByteOrder.LITTLE_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.
Can this just be buffer.order(ByteOrder.nativeOrder())
? that's what's done elsewhere.
CC @NathanHowell for a thought.
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.
Yeah, that's probably the right approach.
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.
Ok I'll change it to that
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.
OK, I think that's an example of a redundant comment, but no big deal. AFAIK this is an OK change and Nathan agrees.
Test build #70514 has finished for PR 16375 at commit
|
Jenkins retest this please |
Test build #70515 has finished for PR 16375 at commit
|
Test run is failing with an unrelated error |
Test build #3513 has finished for PR 16375 at commit
|
Test build #70546 has finished for PR 16375 at commit
|
Merged to master |
…ntArray test fails on big endian. Only change byte order on little endian ## What changes were proposed in this pull request? Fix test to only change byte order on LE platforms ## How was this patch tested? Test run on Big Endian and Little Endian platforms Author: Pete Robbins <robbinspg@gmail.com> Closes apache#16375 from robbinspg/SPARK-18963.
…ntArray test fails on big endian. Only change byte order on little endian ## What changes were proposed in this pull request? Fix test to only change byte order on LE platforms ## How was this patch tested? Test run on Big Endian and Little Endian platforms Author: Pete Robbins <robbinspg@gmail.com> Closes apache#16375 from robbinspg/SPARK-18963.
fails on big endian. Only change byte order on little endian
What changes were proposed in this pull request?
Fix test to only change byte order on LE platforms
How was this patch tested?
Test run on Big Endian and Little Endian platforms