You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] compute.cumulative_max initializes incorrectly for non-integer types #51194
Describe the bug, including details regarding any error messages, version, and platform.
the initial value is documented to be
the minimum value of input type (so that any other value will replace the start as the new maximum)
but since it uses std::numeric_limits<T>::min(), for floating-point types like double, this actually initializes with the smallest positive value of the input type. so any input with a prefix of values <=0 will yield incorrect results. this also impacts pandas.cummax()
changed the title [-]`compute.cumulative_max` initializes incorrectly for non-integer types[/-][+][C++] `compute.cumulative_max` initializes incorrectly for non-integer types[/+]on Sep 6, 2026
Activity
[-]`compute.cumulative_max` initializes incorrectly for non-integer types[/-][+][C++] `compute.cumulative_max` initializes incorrectly for non-integer types[/+]Adarsh-Me commentedon Sep 6, 2026
take
GH-51194: [C++] Fix cumulative_max/min default start for floating-poi…
pitrou commentedon Sep 7, 2026
Issue resolved by pull request 51203
#51203