somandal commented on issue #10628:
URL: https://github.com/apache/pinot/issues/10628#issuecomment-1512252037

   Yes, I came across this issue earlier (this function was the same before I 
moved it out from the `AggregateOperator` to `AggregationUtils`) when I tried 
to fix the initialize function for all aggregations to cast to double (like the 
`merge` functions do today). Didn't try to find the right fix for this since 
this was an existing issue at the time.
   
   I think the problem here is that the aggregation functions typecast to 
double, and that doesn't work with boolean, so we should handle booleans 
separately for this case. for MIN, we should set it to 'false' if any value is 
'false' otherwise 'true'. Similarly for max. 
   
   Can you share the logical plan for this query?


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