ashishjayamohan commented on code in PR #15172: URL: https://github.com/apache/pinot/pull/15172#discussion_r1978103228
########## pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseSingleStageBrokerRequestHandler.java: ########## @@ -968,11 +969,37 @@ private BrokerResponseNative getEmptyBrokerOnlyResponse(PinotQuery pinotQuery, R return BrokerResponseNative.BROKER_ONLY_EXPLAIN_PLAN_OUTPUT; } + boolean isAggregation = false; + List<String> columnNames = new ArrayList<>(); + if (pinotQuery.getSelectList() != null) { + for (Expression expression : pinotQuery.getSelectList()) { + if (expression.getType() == ExpressionType.FUNCTION) { + Function function = expression.getFunctionCall(); + if (function != null && AggregationFunctionType.isAggregationFunction(function.getOperator())) { + isAggregation = true; + columnNames.add(function.getOperator() + "(" + function.getOperands().get(0).getIdentifier().getName() + + ")"); Review Comment: There is likely a better way to do this. If there is, please let me know! -- 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