| 447 | // Cumulative functions |
| 448 | |
| 449 | Result<Datum> CumulativeSum(const Datum& values, const CumulativeOptions& options, |
| 450 | bool check_overflow, ExecContext* ctx) { |
| 451 | auto func_name = check_overflow ? "cumulative_sum_checked" : "cumulative_sum"; |
| 452 | return CallFunction(func_name, {Datum(values)}, &options, ctx); |
| 453 | } |
| 454 | |
| 455 | Result<Datum> CumulativeProd(const Datum& values, const CumulativeOptions& options, |
| 456 | bool check_overflow, ExecContext* ctx) { |