Aggregate sum(TYPE d) TYPE

d - Operates on decimals, floats or integers.
The sum of the values in the window.

Ignores any NaN values in the window. Returns NaN if there are both positive and negative infinities in the window. Returns 0 if the window is empty. If there is only one type of infinity in the window that infinity is returned, regardless of the number or values of the other elements.