impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huaisi Xu (Code Review)" <>
Subject [Impala-CR](cdh5-trunk) IMPALA-3711: Remove unnecessary privilege checks in getDbsMetadata()
Date Wed, 29 Jun 2016 20:09:21 GMT
Huaisi Xu has posted comments on this change.

Change subject: IMPALA-3711: Remove unnecessary privilege checks in getDbsMetadata()

Patch Set 11:


sorry was having a team lunch.
Commit Message:

PS11, Line 9: suffers
> suffered

PS11, Line 15: . As a result, even though
             : user wants nothing, we ended up checking everything.
> "thereby causing unnecessary privilege checks for catalog objects that aren

PS11, Line 18: This patch changes getDbsMetadata()'s interface such that
             : caller can pass addition information and it knows whether
             : pattern is provided or not. This patch also applies filters
             : before checks any privilege.
> Maybe we can refine it a bit. How about something like "This patch modifies
File fe/src/main/java/com/cloudera/impala/catalog/

PS11, Line 325: String
> nit: Strings
File fe/src/main/java/com/cloudera/impala/service/

PS11, Line 597: if (matcher == null) return Collections.emptyList();
> Is there a reason why we can't push that check into the catalog.getTableNam
I did not think much about this.. for me it is the same. another reason I just thought of
is that we cannot do that in getColumns() since it matches everything itself. So the idea
maybe does not take null matcher?

I can definitely move that if you insist.

PS11, Line 642: if (matcher == null) return Collections.emptyList();
> Same comment as above.
see above
File fe/src/main/java/com/cloudera/impala/service/

Line 226:    * Utility Class that represents the input parameters of getDbsMetadata() function
> "a"
File fe/src/main/java/com/cloudera/impala/util/

PS11, Line 34: pattern_
> typo: patterns_
File testdata/workloads/functional-query/queries/QueryTest/show.test:

PS11, Line 157: This behaves different than Hive, see IMPALA-3744
> "# Impala only considers '*' and '|' as meta-characters in SHOW statements 

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I17d8c5b9fb12483e4b01b819fba48b6849311a14
Gerrit-PatchSet: 11
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Huaisi Xu <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Huaisi Xu <>
Gerrit-HasComments: Yes

View raw message