| 475 | // Cumulative functions |
| 476 | |
| 477 | Result<Datum> CumulativeSum(const Datum& values, const CumulativeOptions& options, |
| 478 | bool check_overflow, ExecContext* ctx) { |
| 479 | auto func_name = check_overflow ? "cumulative_sum_checked" : "cumulative_sum"; |
| 480 | return CallFunction(func_name, {Datum(values)}, &options, ctx); |
| 481 | } |
| 482 | |
| 483 | Result<Datum> CumulativeProd(const Datum& values, const CumulativeOptions& options, |
| 484 | bool check_overflow, ExecContext* ctx) { |