GitHub user sddyljsx opened a pull request:

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

    [SPARK-25046][SQL] Fix Alter View can excute sql like "ALTER VIEW ... AS 
INSERT INTO"

    ## What changes were proposed in this pull request?
    
    Alter View  can excute sql  like "ALTER VIEW ... AS INSERT INTO" . We 
should throw ParseException(s"Operation not allowed: $message", ctx)  as Create 
View does.
    
    ## How was this patch tested?
    
    UT has been added in SparkSqlParserSuite


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

    $ git pull https://github.com/sddyljsx/spark SPARK-25046

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

    https://github.com/apache/spark/pull/22028.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 #22028
    
----
commit aa2346a9d464d4a4abec9c2c603f4e3f2ad8fe55
Author: Neal Song <neal_song@...>
Date:   2018-08-07T11:48:59Z

    Merge pull request #1 from apache/master
    
    merge

commit de44d0df8053c5caececee6b0f625d69b884b8d9
Author: neal <neal_song@...>
Date:   2018-08-07T15:22:44Z

    Fix Alter View ... As Insert Into Table

----


---

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

Reply via email to