GitHub user mgaido91 opened a pull request:

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

    [SPARK-22699][SQL] GenerateSafeProjection should not use global variables 
for struct

    ## What changes were proposed in this pull request?
    
    GenerateSafeProjection is defining a mutable state for each struct, which 
is not needed. This is bad for the well known issues related to constant pool 
limits.
    The PR replace the global variable with a local one.
    
    ## How was this patch tested?
    
    added UT


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

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

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

    https://github.com/apache/spark/pull/19914.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 #19914
    
----
commit 6d2ce8e411e3bfe5aa12dd351c29f247caf1ffe5
Author: Marco Gaido <[email protected]>
Date:   2017-12-06T18:17:28Z

    [SPARK-22699][SQL] GenerateSafeProjection should not use global variables 
for struct

----


---

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

Reply via email to