GitHub user peter-toth opened a pull request:

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

    [SPARK-25767][SQL] fix inputVars preparation if outputVars is a lazy stream

    ## What changes were proposed in this pull request?
    
    Code generation is incorrect if `outputVars` parameter of `consume` method 
in `CodegenSupport` contains a lazy evaluated stream of expressions.
    This PR fixes the issue by forcing the evaluation of `inputVars` before 
generating the code for UnsafeRow.
    
    ## How was this patch tested?
    
    Tested with the sample program provided in 
https://issues.apache.org/jira/browse/SPARK-25767 


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

    $ git pull https://github.com/peter-toth/spark SPARK-25767

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

    https://github.com/apache/spark/pull/22789.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 #22789
    
----
commit 2ca1795da0af56021e7002bcae8ed8545eb72b6d
Author: Peter Toth <peter.toth@...>
Date:   2018-10-21T20:53:08Z

    [SPARK-25767][SQL] fix inputVars preparation if outputVars is a lazy stream
    
    Change-Id: Iac584a018f9892367841357c667ccaec1c15047b

----


---

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

Reply via email to