1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

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
This commit is contained in:
Bahex 2025-01-27 17:01:42 +03:00 committed by GitHub
parent f950405fbe
commit abc1330406
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<count: int>
table -> table<count: int>,
record -> error,
] {
let IN = $in
let md = metadata $in