GitHub user mgaido91 opened a pull request:

    https://github.com/apache/spark/pull/19752

    [SPARK-22520][SQL] Support code generation for large CaseWhen

    ## What changes were proposed in this pull request?
    
    Code generation is disabled for CaseWhen when the number of branches is 
higher than `spark.sql.codegen.maxCaseBranches` (which defaults to 20). This 
was done to prevent the well known 64KB method limit exception.
    This PR proposes to support code generation also in those cases (without 
causing exceptions of course). As a side effect, we could get rid of the 
`spark.sql.codegen.maxCaseBranches` configuration.
    
    ## How was this patch tested?
    
    existing UTs


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mgaido91/spark SPARK-22520

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/19752.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 #19752
    
----
commit 98eaae9436adf63ec3023ee077f2fff8e23dfa35
Author: Marco Gaido <mga...@hortonworks.com>
Date:   2017-11-14T17:41:00Z

    [SPARK-22520][SQL] Support code generation for large CaseWhen

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to