A running SUM adds the current row to the earlier rows in the same partition.
prefix frame
Replay the prefix
The prefix frame gives 5 rows running sums.
running rows=5
Window-function examples are tiny finite table transforms; SQL dialects, NULL ordering, frames beyond prefix rows, optimizer behavior, performance, and product behavior are out of scope.
Read the sum
Each runningSum cell is recomputed from the visible prefix of integer amount cells.
visible prefix sum
Summary
No average, decimal, or hidden frame rule is used here.