GitHub user jiangxb1987 opened a pull request:

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

    [SPARK-18209][SQL] Alias the view with its child by mapping the columns by 
index

    ## What changes were proposed in this pull request?
    
    This PR is a follow-up to address the comments 
https://github.com/apache/spark/pull/16233/files#r95669988 and 
https://github.com/apache/spark/pull/16233/files#r95662299.
    
    We should alias the view with its child by mapping the columns by index, 
which follows the behavior in Hive. If the dataType of the outputs from the 
view and the child don't match up, we should throw an Exception.
    
    ## How was this patch tested?
    
    Add new test cases in `SQLViewSuite`.

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

    $ git pull https://github.com/jiangxb1987/spark alias-view

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

    https://github.com/apache/spark/pull/16561.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 #16561
    
----
commit 0e823409f1ff4689883408992c5a3a739d39a8d2
Author: jiangxingbo <jiangxb1...@gmail.com>
Date:   2017-01-12T10:06:04Z

    alias view with child by map the columns by index.

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to