impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharath Vissapragada (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-1670: Support multiple partitions in ALTER TABLE ADD PARTITION
Date Mon, 12 Sep 2016 18:52:38 GMT
Bharath Vissapragada has posted comments on this change.

Change subject: IMPALA-1670: Support multiple partitions in ALTER TABLE ADD PARTITION

Patch Set 7:

File fe/src/main/java/com/cloudera/impala/analysis/

PS7, Line 55:   public void setTableName(TableName tableName) {
            :     partitionSpec_.setTableName(tableName);
            :   }
            :   public void setPartitionShouldNotExist() {
            :     partitionSpec_.setPartitionShouldNotExist();
Can't we just make PartitionParams subclass PartitionSpec and avoid duplicate code? It cleans
up the class structure and also the analyze() as well.
File fe/src/main/java/com/cloudera/impala/service/

Line 375:           // already exist in Hive, then throw ImpalaRuntimeException.
> You may want to comment on the consistency guarantees (if any) here. For ex
Skimming through the code, looks like there can be partial updates and inconsistencies possible,
please correct me if I'm wrong. If for some reason an add_partition() on a specific fails,
the query fails but the HMS has already updated a few partitions for all the successful add_partition()
calls till then. Given we don't propagate DDL updates to the coordinator for failed queries,
Impalads and Hive can become inconsistent. +1 to Dimitris' suggestion to use the add_partitions()

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Iddbc951f2931f488f7048c9780260f6b49100750
Gerrit-PatchSet: 7
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Attila Jeges <>
Gerrit-Reviewer: Attila Jeges <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Michael Ho <>
Gerrit-HasComments: Yes

View raw message