weixiangsun commented on a change in pull request #8029: URL: https://github.com/apache/pinot/pull/8029#discussion_r819934610
########## File path: pinot-common/src/main/java/org/apache/pinot/sql/parsers/CalciteSqlParser.java ########## @@ -369,6 +369,9 @@ private static PinotQuery compileCalciteSqlToPinotQuery(String sql) { DataSource dataSource = new DataSource(); dataSource.setTableName(fromNode.toString()); pinotQuery.setDataSource(dataSource); + if (fromNode instanceof SqlSelect || fromNode instanceof SqlOrderBy) { Review comment: Can not leave TableName as null. I will accept your other suggestion. -- 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