pranavbhole commented on code in PR #15434:
URL: https://github.com/apache/druid/pull/15434#discussion_r1408713574


##########
processing/src/main/java/org/apache/druid/query/aggregation/any/StringAnyBufferAggregator.java:
##########
@@ -52,7 +55,13 @@ public void aggregate(ByteBuffer buf, int position)
   {
     if (buf.getInt(position) == NOT_FOUND_FLAG_VALUE) {
       final Object object = valueSelector.getObject();
-      String foundValue = DimensionHandlerUtils.convertObjectToString(object);
+      String foundValue;
+      if (object != null && object instanceof List && 
!aggregateMultipleValues) {
+        List<Object> objectList = (List) object;
+        foundValue = objectList.size() > 0 ? 
DimensionHandlerUtils.convertObjectToString(objectList.get(0)) : null;

Review Comment:
   nope, we check the flag aggregateMultipleValues and return all elements 
stringified 



-- 
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