ashishjayamohan commented on code in PR #14154:
URL: https://github.com/apache/pinot/pull/14154#discussion_r1792271425


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotQueryResource.java:
##########
@@ -163,6 +165,17 @@ private String executeSqlQuery(@Context HttpHeaders 
httpHeaders, String sqlQuery
     } catch (SqlCompilationException ex) {
       throw QueryException.getException(QueryException.SQL_PARSING_ERROR, ex);
     }
+
+    String tableName = 
CalciteSqlParser.compileToPinotQuery(sqlQuery).getDataSource().getTableName();

Review Comment:
   @yashmayya Gotcha. I'm looking at the `isTableEnabled` function in the 
`PinotHelixResourceManager`, but can't quite figure out how to use that in the 
broker request handler. Is there something else I should use instead?



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