Skip to content

Conversation

@mtbrandy
Copy link
Contributor

@mtbrandy mtbrandy commented Aug 3, 2015

Previous code assumed little-endian.

Previous code assumed little-endian.
@JoshRosen
Copy link
Contributor

/cc @davies

@JoshRosen
Copy link
Contributor

Jenkins, this is ok to test.

Copy link
Contributor

Choose a reason for hiding this comment

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

can we move the result of ByteOrder.nativeOrder into a static variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do

@rxin
Copy link
Contributor

rxin commented Aug 3, 2015

@mtbrandy not 100% sure, but it might be more clear if you just have a top level branch based on endianness.

@mtbrandy
Copy link
Contributor Author

mtbrandy commented Aug 3, 2015

@rxin, regarding top-level branch -- I can do that, but was just trying to minimize duplicate code.

@davies
Copy link
Contributor

davies commented Aug 3, 2015

+1 for moving the endianness check to top level, otherwise LGTM.

@mtbrandy
Copy link
Contributor Author

mtbrandy commented Aug 3, 2015

ok, I'll modify to move the endianness check up.

- Introduce static byteOrder variable
- Branch on byteOrder at top-level for readability.
@SparkQA
Copy link

SparkQA commented Aug 3, 2015

Test build #39580 has finished for PR 7902 at commit 17d54c6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Aug 3, 2015

@davies I will let you merge this.

@SparkQA
Copy link

SparkQA commented Aug 4, 2015

Test build #39589 has finished for PR 7902 at commit ec31df8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

asfgit pushed a commit that referenced this pull request Aug 4, 2015
Previous code assumed little-endian.

Author: Matthew Brandyberry <[email protected]>

Closes #7902 from mtbrandy/SPARK-9483 and squashes the following commits:

ec31df8 [Matthew Brandyberry] [SPARK-9483] Changes from review comments.
17d54c6 [Matthew Brandyberry] [SPARK-9483] Fix UTF8String.getPrefix for big-endian.

(cherry picked from commit b79b4f5)
Signed-off-by: Davies Liu <[email protected]>
@davies
Copy link
Contributor

davies commented Aug 4, 2015

Merged into master and 1.5-branch, thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants