walterddr commented on code in PR #10534:
URL: https://github.com/apache/pinot/pull/10534#discussion_r1160411324
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/MultiStageBrokerRequestHandler.java:
##########
@@ -169,6 +181,27 @@ private BrokerResponse handleRequest(long requestId,
String query,
return new
BrokerResponseNative(QueryException.getException(QueryException.SQL_PARSING_ERROR,
e));
}
+ QueryPlan queryPlan = queryPlanResult.getQueryPlan();
+ Set<String> tableNames =
getTableNamesFromRelRoot(queryPlanResult.getRelRoot());
Review Comment:
we have the exact same util in pinot-controller that listed out all the
accessed tables --> then find the appropriate broker to route the query to.
however that's based off SqlNode instead of RelNode. I was thinking about
unifying these two later. we can keep a TODO github issue for reminder if we
decided to merge this PR as is
--
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]