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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to