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


##########
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:
   Gotcha, I've moved it to the broker request handler right after we check if 
the table exists.



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