GitHub user gatorsmile opened a pull request:

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

    [SPARK-17180] [SQL] Fix View Resolution Order in ALTER VIEW AS SELECT

    ### What changes were proposed in this pull request?
    In the current master branch, when users do not specify the database name 
in the `ALTER VIEW AS SELECT` command, we always try to alter the permanent 
view even if the temporary view exists. This PR is to resolve this issue. 
    
    After the fix, `ALTER VIEW AS SELECT` command alters the temporary view if 
the temp view exists; otherwise, try to alter the permanent view. This order is 
consistent with another command `DROP VIEW`, since users are unable to specify 
the keyword TEMPORARY.
    
    ### How was this patch tested?
    Added test cases.

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

    $ git pull https://github.com/gatorsmile/spark alterViewFix

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

    https://github.com/apache/spark/pull/14746.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 #14746
    
----
commit db45b4cc3614965980571c6203074af845e4d249
Author: gatorsmile <[email protected]>
Date:   2016-08-22T06:45:37Z

    fix.

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to