Fredy Wijaya has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/11663


Change subject: IMPALA-7701: grant_option in SHOW GRANT always returns NULL 
from HS2 clients
......................................................................

IMPALA-7701: grant_option in SHOW GRANT always returns NULL from HS2 clients

Prior to this patch, SHOW GRANT ROLE/USER always showed NULL in
grant_option column because the grant_option column header was set
to use BOOLEAN type but the column value was set to use STRING.
This mismatch causes HS2 clients to interpret the column value as
not set (NULL). The patch fixes the issue by setting the grant_option
column value to use BOOLEAN value.

Testing:
- Ran all FE tests
- Added new E2E test running SHOW GRANT statements from HS2 client
- Ran all E2E authorization tests

Change-Id: I1e175544172b63d36dceedc61e1f47e0f910d7cf
---
M fe/src/main/java/org/apache/impala/catalog/AuthorizationPolicy.java
M fe/src/main/java/org/apache/impala/util/TResultRowBuilder.java
A tests/authorization/test_show_grant.py
D tests/authorization/test_show_grant_user.py
4 files changed, 156 insertions(+), 95 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/63/11663/1
--
To view, visit http://gerrit.cloudera.org:8080/11663
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e175544172b63d36dceedc61e1f47e0f910d7cf
Gerrit-Change-Number: 11663
Gerrit-PatchSet: 1
Gerrit-Owner: Fredy Wijaya <fwij...@cloudera.com>

Reply via email to