You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2016/09/15 06:45:20 UTC
[jira] [Resolved] (SPARK-17440) Issue Exception when ALTER TABLE
commands try to alter a VIEW
[ https://issues.apache.org/jira/browse/SPARK-17440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-17440.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
Issue resolved by pull request 15004
[https://github.com/apache/spark/pull/15004]
> Issue Exception when ALTER TABLE commands try to alter a VIEW
> -------------------------------------------------------------
>
> Key: SPARK-17440
> URL: https://issues.apache.org/jira/browse/SPARK-17440
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.1.0
> Reporter: Xiao Li
> Assignee: Xiao Li
> Fix For: 2.1.0
>
>
> For the following `ALTER TABLE` DDL, we should issue an exception when the target table is a `VIEW`:
> {code}
> ALTER TABLE viewName SET LOCATION '/path/to/your/lovely/heart'
> ALTER TABLE viewName SET SERDE 'whatever'
> ALTER TABLE viewName SET SERDEPROPERTIES ('x' = 'y')
> ALTER TABLE viewName PARTITION (a=1, b=2) SET SERDEPROPERTIES ('x' = 'y')
> ALTER TABLE viewName ADD IF NOT EXISTS PARTITION (a='4', b='8')
> ALTER TABLE viewName DROP IF EXISTS PARTITION (a='2')
> ALTER TABLE viewName RECOVER PARTITIONS
> ALTER TABLE viewName PARTITION (a='1', b='q') RENAME TO PARTITION (a='100', b='p')
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org