GitHub user cloud-fan opened a pull request:

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

    [SPARK-21165][SQL] FileFormatWriter should only rely on attributes from 
analyzed plan

    ## What changes were proposed in this pull request?
    
    The plan output attribute ids may get changed during optimization, so 
`FileFormatWriter` should only use attribute ids from analyzed plan instead of 
optimized/physical plan, or bind error may occur.
    
    ## How was this patch tested?
    
    new regression test.

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

    $ git pull https://github.com/cloud-fan/spark bug2

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

    https://github.com/apache/spark/pull/19483.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 #19483
    
----
commit d90a0e4e8a62ffeb5742777d234db7ff3bab4272
Author: Wenchen Fan <[email protected]>
Date:   2017-10-12T14:04:29Z

    FileFormatWriter should only rely on attributes from analyzed plan

----


---

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

Reply via email to