Changes between Initial Version and Version 1 of Ticket #36638, comment 5


Ignore:
Timestamp:
Oct 3, 2025, 12:43:02 PM (4 hours ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36638, comment 5

    initial v1  
    1010
    1111> It should be noted that except for `count`, these functions return a null value when no rows are selected. In particular, `sum` of no rows returns null, not zero as one might expect, and `array_agg` returns null rather than an empty array when there are no input rows. The `coalesce` function can be used to substitute zero or an empty array for null when necessary.
     12
     13Concretely this means that `Aggregate.default` is a nicer way to express `Coalesce(Aggregate(...), default)`.
Back to Top