weixiangsun commented on a change in pull request #8029: URL: https://github.com/apache/pinot/pull/8029#discussion_r819266353
########## 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: I do not have deep insight into it. But the following code shows that SqlOrderBy has the SqlSelect member. https://github.com/apache/pinot/blob/master/pinot-common/src/main/java/org/apache/pinot/sql/parsers/CalciteSqlParser.java#L343-L353 -- 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