IMPALA-4390: Separate ADD and DROP PARTITION syntax Keep the location and cache options with ADD PARTITION, and PURGE with DROP PARTITION.
Change-Id: I07458d9851bb2ab48311001f696353f834c4fe80 Reviewed-on: http://gerrit.cloudera.org:8080/5729 Reviewed-by: Dimitris Tsirogiannis <[email protected]> Tested-by: Impala Public Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/98ff43c6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/98ff43c6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/98ff43c6 Branch: refs/heads/master Commit: 98ff43c68dd0432ba108d195229e5a5f5c345d2d Parents: 6a95f42 Author: John Russell <[email protected]> Authored: Wed Jan 18 10:12:49 2017 -0800 Committer: Impala Public Jenkins <[email protected]> Committed: Fri Jan 27 23:52:05 2017 +0000 ---------------------------------------------------------------------- docs/topics/impala_alter_table.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/98ff43c6/docs/topics/impala_alter_table.xml ---------------------------------------------------------------------- diff --git a/docs/topics/impala_alter_table.xml b/docs/topics/impala_alter_table.xml index 950ebc6..c4df150 100644 --- a/docs/topics/impala_alter_table.xml +++ b/docs/topics/impala_alter_table.xml @@ -60,7 +60,13 @@ ALTER TABLE <varname>name</varname> DROP [COLUMN] <varname>column_name</varname> ALTER TABLE <varname>name</varname> CHANGE <varname>column_name</varname> <varname>new_name</varname> <varname>new_type</varname> ALTER TABLE <varname>name</varname> REPLACE COLUMNS (<varname>col_spec</varname>[, <varname>col_spec</varname> ...]) -ALTER TABLE <varname>name</varname> { ADD [IF NOT EXISTS] | DROP [IF EXISTS] } PARTITION (<varname>partition_spec</varname>) <ph rev="2.3.0">[PURGE]</ph> +ALTER TABLE <varname>name</varname> ADD [IF NOT EXISTS] PARTITION (<varname>partition_spec</varname>) + <ph rev="IMPALA-4390">[<varname>location_spec</varname>]</ph> + <ph rev="IMPALA-4390">[<varname>cache_spec</varname>]</ph> + +ALTER TABLE <varname>name</varname> DROP [IF EXISTS] PARTITION (<varname>partition_spec</varname>) + <ph rev="2.3.0">[PURGE]</ph> + <ph rev="2.3.0 IMPALA-1568 CDH-36799">ALTER TABLE <varname>name</varname> RECOVER PARTITIONS</ph> ALTER TABLE <varname>name</varname> [PARTITION (<varname>partition_spec</varname>)]
