NihalJain commented on code in PR #17295:
URL: https://github.com/apache/pinot/pull/17295#discussion_r2617995376


##########
pinot-broker/src/main/java/org/apache/pinot/broker/broker/ZkBasicAuthAccessControlFactory.java:
##########
@@ -120,6 +124,26 @@ public TableAuthorizationResult 
authorize(RequesterIdentity requesterIdentity, S
       return new TableAuthorizationResult(failedTables);
     }
 
+    @Override
+    public TableRowColAccessResult getRowColFilters(RequesterIdentity 
requesterIdentity, String table) {
+      Optional<ZkBasicAuthPrincipal> principalOpt = 
getPrincipalAuth(requesterIdentity);
+
+      Preconditions.checkState(principalOpt.isPresent(), "Principal is not 
authorized");
+      Preconditions.checkState(table != null, "Table cannot be null");
+
+      TableRowColAccessResult tableRowColAccessResult = new 
TableRowColAccessResultImpl();
+      ZkBasicAuthPrincipal principal = principalOpt.get();
+
+      //precondition: The principal should have the table.

Review Comment:
   code is copied from existing method, will fix when we refactor both into a 
single copy



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to