walterddr commented on issue #10688:
URL: https://github.com/apache/pinot/issues/10688#issuecomment-1522148787

   solution:
   
   instead of making `Connection.resolveTableName` call into 
   ```
     private static String resolveTableName(String query) {
       try {
         return 
CalciteSqlCompiler.compileToBrokerRequest(query).querySource.tableName;
         ...
   ```
   we should switch to 
   ```
       SqlNode sqlNode = CalciteSqlParser.extractSqlNodeAndOptions(query);
       return CalciteSqlParser.extractTableNamesFromNode(sqlNode);
   ```


-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to