Skip to content
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-32458][SQL][TESTS] Fix incorrectly sized row value reads. #29258

Closed
wants to merge 1 commit into from

Conversation

mundaym
Copy link
Contributor

@mundaym mundaym commented Jul 27, 2020

What changes were proposed in this pull request?

Updates to tests to use correctly sized getInt or getLong calls.

Why are the changes needed?

The reads were incorrectly sized (i.e. putLong paired with getInt and putInt paired with getLong). This causes test failures on big-endian systems.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Tests were run on a big-endian system (s390x). This change is unlikely to have any practical effect on little-endian systems.

Use getInt to fetch 32 bit values and getLong to fetch 64 bit values.
The mismatched sizes caused test failures on big-endian systems.
@HyukjinKwon
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Jul 27, 2020

Test build #126649 has finished for PR 29258 at commit 3ff698b.

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

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Thank you for your first contribution, @mundaym .

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. The three instances are correct. Merged to master.

@dongjoon-hyun
Copy link
Member

You are added to the Apache Spark contributor group and SPARK-32458 is assigned to you. Welcome!

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.

5 participants