Nandor Kollar has posted comments on this change. ( http://gerrit.cloudera.org:8080/24808 )
Change subject: IMPALA-15341: Preserve accessType and action in Ranger's audit events ...................................................................... Patch Set 4: (1 comment) http://gerrit.cloudera.org:8080/#/c/24808/4/fe/src/main/java/org/apache/impala/authorization/ranger/RangerBufferAuditHandler.java File fe/src/main/java/org/apache/impala/authorization/ranger/RangerBufferAuditHandler.java: http://gerrit.cloudera.org:8080/#/c/24808/4/fe/src/main/java/org/apache/impala/authorization/ranger/RangerBufferAuditHandler.java@52 PS4, Line 52: public static final Set<String> ROLE_OPS = new HashSet<>(Arrays.asList( nit: `Set.of(RangerCatalogdAuthorizationManager.CREATE_ROLE_ACTION, RangerCatalogdAuthorizationManager.DROP_ROLE_ACTION, RangerCatalogdAuthorizationManager.GRANT_ROLE_ACTION, RangerCatalogdAuthorizationManager.REVOKE_ROLE_ACTION);` is less verbose. An extra benefit is that if will produce an immutable set. Furthermore, I think we can also make this private (actually ACCESS_TYPE_ROWFILTER can be package protected, nobody will accidentally import it). -- To view, visit http://gerrit.cloudera.org:8080/24808 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I06eeb3caded2480ad198550bd286337b62f692c2 Gerrit-Change-Number: 24808 Gerrit-PatchSet: 4 Gerrit-Owner: Fang-Yu Rao <[email protected]> Gerrit-Reviewer: Fang-Yu Rao <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Nandor Kollar <[email protected]> Gerrit-Comment-Date: Tue, 20 Oct 2026 21:04:16 +0000 Gerrit-HasComments: Yes
