GitHub user gatorsmile opened a pull request:

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

    [SPARK-17657] [SQL] Disallow Users to Change Table Type 

    ### What changes were proposed in this pull request?
    Hive allows users to change the table type from `Managed` to `External` or 
from `External` to `Managed` by altering table's property `EXTERNAL`. See the 
JIRA: https://issues.apache.org/jira/browse/HIVE-1329
    
    So far, Spark SQL does not correctly support it, although users can do it. 
Many assumptions are broken in the implementation. Thus, this PR is to disallow 
users to do it. 
    
    ### 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 alterTableSetExternal

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

    https://github.com/apache/spark/pull/15230.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 #15230
    
----
commit f028b5ec4730f658c545b6920e4af79ce5acc957
Author: gatorsmile <gatorsm...@gmail.com>
Date:   2016-09-24T06:02:46Z

    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 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