impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Behm (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-1702: Enforce table level consistency accross service
Date Thu, 06 Oct 2016 00:18:27 GMT
Alex Behm has posted comments on this change.

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

Patch Set 7:

File fe/src/main/java/org/apache/impala/analysis/

Line 154:   public TDescriptorTable toThrift() {
Let's add a comment about table id assignment and that this also checks the single-table consistency

Line 156:     // Maps from base table to its table id used in backend.
in the backend
File fe/src/main/java/org/apache/impala/catalog/

Line 42: import;
File fe/src/main/java/org/apache/impala/service/

Line 1128:    * 1. All tables sent to backend have a unique Id, assigned in
Let's rework/move this validation as follows:

* Let's check the table-level consistency guarantee directly in DescriptorTbl.toThrift().

* Let's add validateTableIds() to PlannerTestBase that checks the uniqueness of table ids
in the produced TDescriptorTable

* Get rid of this current function and remove references to IMPALA-1702.

Line 1134:   private void validateTableIds(Analyzer analyzer, TExecRequest result)
File fe/src/test/java/org/apache/impala/planner/

Line 93:   private final Map<Long, TTableDescriptor> tableMap_ = Maps.newHashMap();

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Ifad648b72684ae495ec387590ab1bc58ce5b39e2
Gerrit-PatchSet: 7
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