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


##########
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:
   The `BaseBrokerStarter` which instantiates the single-stage broker request 
handler and the multi-stage broker request handler also has a `HelixAdmin` that 
can be used to check the table's ideal state in ZK (which has the enabled / 
disabled information). So you could inject this admin (and the cluster name) as 
a dependency into the broker request handlers from the `BaseBrokerStarter` and 
use it to check whether the tables in a request are disabled.



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