From 76a0b341365921f46a7d9f7c3ebbedd3beda21a9 Mon Sep 17 00:00:00 2001 From: Bahex Date: Mon, 27 Jan 2025 16:56:57 +0300 Subject: [PATCH] modify input-output types to provide more helpful error --- stdlib-candidate/std-rfc/aggregate/mod.nu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib-candidate/std-rfc/aggregate/mod.nu b/stdlib-candidate/std-rfc/aggregate/mod.nu index 077448bd..be1b0692 100644 --- a/stdlib-candidate/std-rfc/aggregate/mod.nu +++ b/stdlib-candidate/std-rfc/aggregate/mod.nu @@ -71,7 +71,8 @@ export def main [ --ops: record, # default = {min: {math min}, avg: {math avg}, max: {math max}, sum: {math sum}} ...columns: cell-path, # columns to perform aggregations on ]: [ - table -> table + table -> table, + record -> error, ] { let IN = $in let md = metadata $in