GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/12169
[SPARK-14396] [SQL] Throw Exceptions for DDLs of Partitioned Views
#### What changes were proposed in this pull request?
Because the concept of partitioning is associated with physical tables, we
disable all the supports of partitioned views, which are defined in the
following three commands in [Hive DDL
Manual](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/Drop/AlterView):
```
ALTER VIEW view DROP [IF EXISTS] PARTITION spec1[, PARTITION spec2, ...];
ALTER VIEW view ADD [IF NOT EXISTS] PARTITION spec;
CREATE VIEW [IF NOT EXISTS] [db_name.]view_name [(column_name [COMMENT
column_comment], ...) ]
[COMMENT view_comment]
[TBLPROPERTIES (property_name = property_value, ...)]
AS SELECT ...;
```
An exception is thrown when users issue any of these three DDL commands.
#### How was this patch tested?
Added test cases for parsing create view and changed the existing test
cases to verify if the exceptions are thrown.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark viewPartition
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12169.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 #12169
----
commit 181c8173b8ea4aba631e9330d8450f47a9396648
Author: gatorsmile <[email protected]>
Date: 2016-04-05T05:34:49Z
throw exceptions for DDLs of partitioned views
----
---
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]