We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8db6af6 commit 95c6f4cCopy full SHA for 95c6f4c
stdlib-candidate/std-rfc/aggregate/mod.nu
@@ -96,9 +96,17 @@ export def main [
96
let column_results = $columns
97
| each {|col| # col: cell-path
98
let column = $group.items | get-item-with-error $col {span: $md.span, items: $grouped}
99
- $agg_ops | items {|op_name, op| # op_name: string, op: closure
+ let agg_results = $agg_ops | items {|op_name, op| # op_name: string, op: closure
100
$column | do $op | wrap (aggregate-col-name $col $op_name)
101
}
102
+
103
+ for r in $agg_results {
104
+ if ($r | describe) == error {
105
+ return $r
106
+ }
107
108
109
+ $agg_results
110
| reduce {|it| merge $it}
111
112
0 commit comments