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-1702: Enforce table level consistency accross service
Date Thu, 06 Oct 2016 23:00:04 GMT
Bharath Vissapragada has posted comments on this change.

Change subject: IMPALA-1702: Enforce table level consistency accross service

Patch Set 9:

Commit Message:

PS9, Line 7: Enforce table level consistency accross service
IMO, this is a little misleading as its sounds similar to consistency guarantees in DBs. Instead
we should have something like "Make table-id assignment query local" or something similar.
File fe/src/main/java/org/apache/impala/analysis/

Line 295:     private final HashMap<TableName, Table> referencedTables_ = Maps.newHashMap();
Is this change (maintaining referenced tables cache) still required with the latest patch
design with per-query id assignment? Given Catalog doesn't assign an Id anymore, why do we
need to have the same reference of the table? May be I'm missing something.
File fe/src/main/java/org/apache/impala/analysis/

PS9, Line 187:  To ensure the table ID is unique
             :       // in the same query, assign a special CTAS ID. The CatalogServer will
assign this
             :       // table a proper ID once it is created there as part of the CTAS execution.
update this as per new design.
File fe/src/main/java/org/apache/impala/analysis/

PS9, Line 154: /**
             :    * Connect tupleDescriptors to tableDescriptors with unique table ids.
             :    * Verify table level consistency in the same query by checking references
to the same
             :    * table refer to the same table instance.
Nit: This should probably be moved to the line before the logic given this is not what this
method does.

Line 164:     HashMap<TableName, Table> referencedTables = Maps.newHashMap();
Same question as in referencedTables_ in Analyzer. Assuming we want to retain referencedTables_
there, why do we need to repeat it here. Can't we reuse it?
File fe/src/test/java/org/apache/impala/planner/

Line 37: import org.apache.impala.analysis.TableName;
Move it below to org.apache.impala group.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Ifad648b72684ae495ec387590ab1bc58ce5b39e2
Gerrit-PatchSet: 9
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Huaisi Xu <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Huaisi Xu <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message