Aggregation operations in query library functions and built-in query aggregations are inconsistent. This PR makes them consistent. Query library functions were changed.
percentile now returns the primitive type.
sum returns a widened type of double for floating point inputs or long for integer inputs.
product returns a widened type of double for floating point inputs or long for integer inputs.
cumsum returns a widened type of double[] for floating point inputs or long[] for integer inputs.
cumprod returns a widened type of double[] for floating point inputs or long[] for integer inputs.
wsum returns a widened type of long for all integer inputs and double for inputs containing floating points.
Note: Because the types have changed, the NULL return values have changed as well.
This issue was auto-generated
PR: https://github.com/deephaven/deephaven-core/pull/5368 Author: chipkent
Original PR Body
Aggregation operations in query library functions and built-in query aggregations are inconsistent. This PR makes them consistent. Query library functions were changed.
percentile
now returns the primitive type.sum
returns a widened type ofdouble
for floating point inputs orlong
for integer inputs.product
returns a widened type ofdouble
for floating point inputs orlong
for integer inputs.cumsum
returns a widened type ofdouble[]
for floating point inputs orlong[]
for integer inputs.cumprod
returns a widened type ofdouble[]
for floating point inputs orlong[]
for integer inputs.wsum
returns a widened type oflong
for all integer inputs anddouble
for inputs containing floating points.Note: Because the types have changed, the NULL return values have changed as well.
Resolves #4023