GitHub user dongjoon-hyun opened a pull request: https://github.com/apache/spark/pull/12353
[SPARK-14577][SQL] Add spark.sql.codegen.maxCaseBranches config option ## What changes were proposed in this pull request? We currently disable codegen for `CaseWhen` if the number of branches is greater than 20 (in CaseWhen.MAX_NUM_CASES_FOR_CODEGEN). It would be better if this value is a non-public config defined in SQLConf. ## How was this patch tested? Pass the Jenkins tests (including a new testcase `Support spark.sql.codegen.maxCaseBranches option`) You can merge this pull request into a Git repository by running: $ git pull https://github.com/dongjoon-hyun/spark SPARK-14577 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/12353.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #12353 ---- commit 9a83c7f93c89fad7c486ad3ddd99b9abbef1d149 Author: Dongjoon Hyun <dongj...@apache.org> Date: 2016-04-13T00:20:22Z [SPARK-14577][SQL] Add spark.sql.codegen.maxCaseBranches config option ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org