GitHub user poplav opened a pull request:

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

    [BACKPORT-2.1][SPARK-19372][SQL] Fix throwing a Java exception at 
df.fliter() due to 64KB bytecode size limit

    ### What changes were proposed in this pull request?
    
    This PR is backport of #17087 to Spark 2.1
    
    ### How was this patch tested?
    
    Add a test suite into DataFrameSuite

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

    $ git pull https://github.com/poplav/spark SPARK-19372-branch21

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

    https://github.com/apache/spark/pull/18942.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 #18942
    
----
commit c74cb09ed8e36efc51d2725c66e1f6f325233ecd
Author: Kazuaki Ishizaki <[email protected]>
Date:   2017-05-16T21:47:21Z

    [SPARK-19372][SQL] Fix throwing a Java exception at df.fliter() due to 64KB 
bytecode size limit
    
    When an expression for `df.filter()` has many nodes (e.g. 400), the size of 
Java bytecode for the generated Java code is more than 64KB. It produces an 
Java exception. As a result, the execution fails.
    This PR continues to execute by calling `Expression.eval()` disabling code 
generation if an exception has been caught.
    
    Add a test suite into `DataFrameSuite`
    
    Author: Kazuaki Ishizaki <[email protected]>
    
    Closes #17087 from kiszk/SPARK-19372.

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to