vvivekiyer commented on code in PR #10534:
URL: https://github.com/apache/pinot/pull/10534#discussion_r1157611636


##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/MultiStageBrokerRequestHandler.java:
##########
@@ -221,6 +242,11 @@ private BrokerResponse handleRequest(long requestId, 
String query,
     return brokerResponse;
   }
 
+  private boolean hasTableAccess(RequesterIdentity requesterIdentity, RelNode 
relRoot) {
+    Set<String> tableNames = new 
HashSet<>(RelOptUtil.findAllTableQualifiedNames(relRoot));
+    return _accessControlFactory.create().hasAccess(requesterIdentity, 
tableNames);
+  }

Review Comment:
   I don't think it'll be cleaner to pass down the this information as this 
will affect error handling and lead to more info passed down in the future. 
   I am already exploring the idea of returning RelRoot for explain plan. Will 
update this PR.



-- 
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