Skip to content

Commit 59acab9

Browse files
[ci] Add coalesce to aggregation to be safe
Signed-off-by: Raymond Roestenburg <raymond.roestenburg@digitalasset.com>
1 parent 6edf3e7 commit 59acab9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/scan/src/main/scala/org/lfdecentralizedtrust/splice/scan/store/db/ScanAggregator.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,8 @@ final class ScanAggregator(
950950
)
951951
select $roundTotalsStoreId,
952952
ap.aggr_round,
953-
sum(rpt.cumulative_change_to_initial_amount_as_of_round_zero),
954-
sum(rpt.cumulative_change_to_holding_fees_rate)
953+
coalesce(sum(rpt.cumulative_change_to_initial_amount_as_of_round_zero), 0),
954+
coalesce(sum(rpt.cumulative_change_to_holding_fees_rate), 0)
955955
from round_party_totals rpt
956956
join active_parties_for_aggr_rounds ap
957957
on rpt.closed_round = ap.active_round

0 commit comments

Comments
 (0)