impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Attila Jeges (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-1670,IMPALA-4141: Support multiple partitions in ALTER TABLE ADD PARTITION
Date Tue, 18 Oct 2016 13:32:30 GMT
Attila Jeges has posted comments on this change.

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

Patch Set 14:


> Attila, any updates on this one? Let me know if you need any help
 > with the tests?

Sorry for the late response, I was on PTO for a week. Uploading the new change-set now.
File fe/src/main/java/com/cloudera/impala/analysis/

PS14, Line 211: new Comparator<PartitionKeyValue>() {
              :       @Override
              :       public int compare(PartitionKeyValue t, PartitionKeyValue o) {
              :         return t.getColName().compareTo(o.getColName());
              :       }
> Thanks for the explanation. Can you please consider moving this comparison 
Moved it to PartitionKeyVale.getColNameComparator()
File tests/metadata/

PS14, Line 714: # Sometimes metadata load is triggered here, so compare only the first three
              :         # returned partitions.
> I am sorry but we can't just leave it like this. a) we need to understand i
The non-deterministic behavior was caused by the SYNC_DDL query option, which is set to 1
in the previous tests (in ImpalaDbWrapper.__exit__()).

Setting SYNC_DDL to 0 in ImpalaDbWrapper.__enter__() fixed the issue.

PS14, Line 770: def test_partitions_exist_after_refresh(self, vector):
> I don't think this is an integration test. You may want to move it to test_
This test and the INVALIDATE METADATA case was moved to alter-table.test (L1059-L1132).

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Iddbc951f2931f488f7048c9780260f6b49100750
Gerrit-PatchSet: 14
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: Lars Volker <>
Gerrit-Reviewer: Michael Ho <>
Gerrit-HasComments: Yes

View raw message