kishoreg commented on a change in pull request #5513: URL: https://github.com/apache/incubator-pinot/pull/5513#discussion_r437011477
########## File path: pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java ########## @@ -435,6 +455,116 @@ static void handleQueryLimitOverride(BrokerRequest brokerRequest, int queryLimit } } + /** + * Check if a SQL parsed BrokerRequest is a literal only query. + * @param brokerRequest + * @return true if this query selects only Literals + * + */ + @VisibleForTesting + static boolean isLiteralOnlyQuery(BrokerRequest brokerRequest) { + if (brokerRequest.getPinotQuery() != null) { + for (Expression e: brokerRequest.getPinotQuery().getSelectList()) { + if (!CalciteSqlParser.isLiteralOnlyExpression(e)) { + return false; + } + } + return true; + } + return false; + } + + /** + * Compute BrokerResponse for literal only query. + * + * @param brokerRequest + * @param compilationStartTimeNs + * @param requestStatistics + * @return BrokerResponse + */ + private BrokerResponse processLiteralOnlyBrokerRequest(BrokerRequest brokerRequest, long compilationStartTimeNs, + RequestStatistics requestStatistics) + throws IllegalStateException { + System.out.println("brokerRequest = " + brokerRequest.toString()); Review comment: remove ---------------------------------------------------------------- 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. 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