aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDavies Liu <davies@databricks.com>2016-03-09 09:27:28 -0800
committerDavies Liu <davies.liu@gmail.com>2016-03-09 09:27:28 -0800
commit9634e17d0183d43606a96fbba630e4c6ad720f7c (patch)
treeb2c495e5a4d77e48835228531fc5a98d4a9aa8ff /python
parent53ba6d6e59d1172035c2d5e2906bb03fd1998e14 (diff)
downloadspark-9634e17d0183d43606a96fbba630e4c6ad720f7c.tar.gz
spark-9634e17d0183d43606a96fbba630e4c6ad720f7c.tar.bz2
spark-9634e17d0183d43606a96fbba630e4c6ad720f7c.zip
[SPARK-13242] [SQL] codegen fallback in case-when if there many branches
## 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. This PR is based on #11243 and #11221, thanks to joehalliwell Closes #11243 Closes #11221 ## How was this patch tested? Add a test with 50 branches. Author: Davies Liu <davies@databricks.com> Closes #11592 from davies/fix_when.
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions