Quanlong Huang has posted comments on this change. ( http://gerrit.cloudera.org:8080/21662 )
Change subject: IMPALA-12758: Fix catalogd not setting prev_id for reloaded partitions ...................................................................... Patch Set 6: Code-Review+1 (3 comments) http://gerrit.cloudera.org:8080/#/c/21662/6//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/21662/6//COMMIT_MSG@12 PS6, Line 12: impalads nit: To be clear, I think "LocalCatalog mode coordinators" or "coordinators in LocalCatalog mode" is better. http://gerrit.cloudera.org:8080/#/c/21662/6//COMMIT_MSG@18 PS6, Line 18: This is only an issue in local catalog mode nit: Please add "for REFRESH <partition> or updating partitions based on HMS events" http://gerrit.cloudera.org:8080/#/c/21662/6/fe/src/main/java/org/apache/impala/catalog/HdfsTable.java File fe/src/main/java/org/apache/impala/catalog/HdfsTable.java: http://gerrit.cloudera.org:8080/#/c/21662/6/fe/src/main/java/org/apache/impala/catalog/HdfsTable.java@3094 PS6, Line 3094: if (entry.getValue() != null) { : dropPartition(entry.getValue(), false); : } : addPartition(entry.getKey().build()); We always drop and add the partition instance no matter whether the partition metadata is actually updated. So REFRESH <partition> will always update the partition. That's different to REFRESH <table> where we skip unchanged partitions here: https://github.com/apache/impala/blob/42fda24364786cc1a457890bd212bb3922479e95/fe/src/main/java/org/apache/impala/catalog/HdfsTable.java#L1098-L1101 Filed IMPALA-13453 to track this issue. -- To view, visit http://gerrit.cloudera.org:8080/21662 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ia7d53f601b63d83e99cbd2d1f58076a0dc78c610 Gerrit-Change-Number: 21662 Gerrit-PatchSet: 6 Gerrit-Owner: Sai Hemanth Gantasala <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Reviewer: Sai Hemanth Gantasala <[email protected]> Gerrit-Comment-Date: Wed, 16 Oct 2024 02:18:01 +0000 Gerrit-HasComments: Yes
