Skip to content

Conversation

davies
Copy link
Contributor

@davies davies commented Mar 9, 2016

What changes were proposed in this pull request?

If there are many branches in a CaseWhen expression, the generated code could go above the 64K limit for single java method, will fail to compile. This PR change it to fallback to interpret mode if there are more than 20 branches.

How was this patch tested?

Add tests

@SparkQA
Copy link

SparkQA commented Mar 9, 2016

Test build #52755 has finished for PR 11606 at commit 522e7bf.

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

@davies
Copy link
Contributor Author

davies commented Mar 9, 2016

Merging this into 1.6 branch.

asfgit pushed a commit that referenced this pull request Mar 9, 2016
## What changes were proposed in this pull request?

If there are many branches in a CaseWhen expression, the generated code could go above the 64K limit for single java method, will fail to compile. This PR change it to fallback to interpret mode if there are more than 20 branches.

## How was this patch tested?

Add tests

Author: Davies Liu <[email protected]>

Closes #11606 from davies/fix_when_16.
@davies davies closed this Mar 9, 2016
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.

2 participants