Fang-Yu Rao has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/15412


Change subject: IMPALA-9350: Produce Ranger audits for column masking
......................................................................

IMPALA-9350: Produce Ranger audits for column masking

Support for column mask transformation was provided in IMPALA-9009.
However, the corresponding audit logs were not generated when a query
involved policies of column masking. This patch fixes the issue by
providing the Ranger plug-in with a non-null instance of
RangerBufferAuditHandler when calling evalDataMaskPolicies() so that
the corresponding audit log could be stored in the audit handler after
the evaluation of a policy involving column masking.

Testing:
- Verified that the patch passed the exhaustive tests in the DEBUG build.
- Verified that the corresponding audit logs are indeed produced in a
  3-node cluster with Ranger and Solr installed.

Change-Id: I9d8a1181234dcef580f68f56c24ad7e962cfe58e
---
M fe/src/main/java/org/apache/impala/analysis/Analyzer.java
M fe/src/main/java/org/apache/impala/analysis/InlineViewRef.java
M fe/src/main/java/org/apache/impala/authorization/AuthorizationChecker.java
M fe/src/main/java/org/apache/impala/authorization/NoopAuthorizationFactory.java
M fe/src/main/java/org/apache/impala/authorization/TableMask.java
M 
fe/src/main/java/org/apache/impala/authorization/ranger/RangerAuthorizationChecker.java
M 
fe/src/main/java/org/apache/impala/authorization/sentry/SentryAuthorizationChecker.java
M fe/src/test/java/org/apache/impala/common/FrontendTestBase.java
8 files changed, 37 insertions(+), 19 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9d8a1181234dcef580f68f56c24ad7e962cfe58e
Gerrit-Change-Number: 15412
Gerrit-PatchSet: 1
Gerrit-Owner: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>

Reply via email to