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:
parent
f950405fbe
commit
abc1330406
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ export def main [
|
||||||
--ops: record, # default = {min: {math min}, avg: {math avg}, max: {math max}, sum: {math sum}}
|
--ops: record, # default = {min: {math min}, avg: {math avg}, max: {math max}, sum: {math sum}}
|
||||||
...columns: cell-path, # columns to perform aggregations on
|
...columns: cell-path, # columns to perform aggregations on
|
||||||
]: [
|
]: [
|
||||||
table -> table<count: int>
|
table -> table<count: int>,
|
||||||
|
record -> error,
|
||||||
] {
|
] {
|
||||||
let IN = $in
|
let IN = $in
|
||||||
let md = metadata $in
|
let md = metadata $in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue