[Impala-ASF-CR] IMPALA-7671: Fix broken SHOW GRANT USER ON

Sat, 06 Oct 2018 00:26:29 -0700

Impala Public Jenkins has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/11598 )

Change subject: IMPALA-7671: Fix broken SHOW GRANT USER ON <object>
......................................................................

IMPALA-7671: Fix broken SHOW GRANT USER ON <object>

This patch fixes the broken SHOW GRANT USER ON <object> that always
shows an empty result due to incorrect comparison between TPrivilege for
the filter vs TPrivilege for the actual privilege that should not
consider the "grantoption".

Testing:
- Added new E2E tests
- Ran all FE tests
- Ran all authorization E2E tests

Change-Id: I7adc403caddd18e5a954cf6affd5d1d555b9f5f0
Reviewed-on: http://gerrit.cloudera.org:8080/11598
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M fe/src/main/java/org/apache/impala/catalog/AuthorizationPolicy.java
M testdata/workloads/functional-query/queries/QueryTest/show_grant_user.test
M tests/common/impala_test_suite.py
3 files changed, 23 insertions(+), 2 deletions(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

--
To view, visit http://gerrit.cloudera.org:8080/11598
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7adc403caddd18e5a954cf6affd5d1d555b9f5f0
Gerrit-Change-Number: 11598
Gerrit-PatchSet: 5
Gerrit-Owner: Fredy Wijaya <[email protected]>
Gerrit-Reviewer: Adam Holley <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Fredy Wijaya <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Vuk Ercegovac <[email protected]>

Reply via email to