GitHub user gatorsmile opened a pull request: https://github.com/apache/spark/pull/15054
[SPARK-17502] [SQL] Fix Multiple Bugs in DDL Statements on Temporary Views [WIP] ### What changes were proposed in this pull request? - When the permanent tables/views do not exist but the temporary view exists, the expected error should be `NoSuchTableException` for partition-related ALTER TABLE commands. However, it always reports a confusing error message. For example, ``` Partition spec is invalid. The spec (a, b) must match the partition spec () defined in table '`testview`'; ``` - When the permanent tables/views do not exist but the temporary view exists, the expected error should be `NoSuchTableException` for `ALTER TABLE ... UNSET TBLPROPERTIES`. However, it reports a missing table property. However, the expected error should be `NoSuchTableException`. For example, ``` Attempted to unset non-existent property 'p' in table '`testView`'; ``` TODO: Trying to add more test cases for DDL processing over temporary views. ### How was this patch tested? Added multiple test cases You can merge this pull request into a Git repository by running: $ git pull https://github.com/gatorsmile/spark tempViewDDL Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15054.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 #15054 ---- commit cc47c3eb07a7628faa4277dd87c2837d01c4f175 Author: gatorsmile <gatorsm...@gmail.com> Date: 2016-09-12T06:08:17Z 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