dmfay opened a new issue #10513:
URL: https://github.com/apache/druid/issues/10513


   ```
   select category, avg(timestampdiff(day, time_parse(started_at), 
coalesce(time_parse(ended_at), current_timestamp))) as avg_lifespan
   from mytable
   group by category
   order by category
   ```
   
   `avg_lifespan` for every `category` is always `2147483647`, even when only a 
single value participates in the average. Other aggregate functions like `min`, 
`max`, and `sum` yield expected results.
   
   Druid version 0.19.0.


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



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

Reply via email to