GitHub user cloud-fan opened a pull request:

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

    [SPARK-23315][SQL] failed to get output from canonicalized data source v2 
related plans

    ## What changes were proposed in this pull request?
    
    `DataSourceV2Relation`  keeps a `fullOutput` and resolves the real output 
on demand by column name lookup. This will be broken after we canonicalize the 
plan, because all attribute names become "None".
    
    To fix this, `DataSourceV2Relation` should just keep `output`, and update 
the `output` when doing column pruning.
    
    ## How was this patch tested?
    
    a new test case

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

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

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

    https://github.com/apache/spark/pull/20485.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 #20485
    
----
commit 75950a1725f01c31764ac31d16acd6e2078956c6
Author: Wenchen Fan <wenchen@...>
Date:   2018-02-02T07:53:07Z

    failed to get output from canonicalized data source v2 related plans

----


---

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

Reply via email to