aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorgatorsmile <gatorsmile@gmail.com>2016-04-05 22:33:44 -0700
committerAndrew Or <andrew@databricks.com>2016-04-05 22:33:44 -0700
commit68be5b9e8a5ac1fc4d243bb54c2ca95fee3f74dc (patch)
tree9ba0f8e3dc8af4ade430b5c96ce29ec6db0f574d /core
parent48467f4eb02209a884adbcf052670a057a75fcbd (diff)
downloadspark-68be5b9e8a5ac1fc4d243bb54c2ca95fee3f74dc.tar.gz
spark-68be5b9e8a5ac1fc4d243bb54c2ca95fee3f74dc.tar.bz2
spark-68be5b9e8a5ac1fc4d243bb54c2ca95fee3f74dc.zip
[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. Author: gatorsmile <gatorsmile@gmail.com> Author: xiaoli <lixiao1983@gmail.com> Author: Xiao Li <xiaoli@Xiaos-MacBook-Pro.local> Closes #12169 from gatorsmile/viewPartition.
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions