From abc1330406c55b10fc525be0c63965b51d18f9e5 Mon Sep 17 00:00:00 2001 From: Bahex Date: Mon, 27 Jan 2025 17:01:42 +0300 Subject: [PATCH] fix(aggregate): modify input-output types to provide a more helpful error message (#1024) implement https://github.com/nushell/nu_scripts/pull/991#issuecomment-2615815135 --- 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 077448b..be1b069 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