Skip to content

Commit

Permalink
add new aggregate
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanuelAaron committed Oct 31, 2024
1 parent 530b943 commit c142e80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion master/internal/api_runs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ func (a *apiServer) GetRunGroups(ctx context.Context, req *apiv1.GetRunGroupsReq
ColumnExpr("run_groups.searcher_metrics").
ColumnExpr("run_groups.run_count").
ColumnExpr("array_to_json(run_groups.run_ids) as run_ids").
ColumnExpr(`(SELECT jsonb_merge_agg(jsonb_build_object(s.hparam,
ColumnExpr(`(SELECT jsonb_concat_agg(jsonb_build_object(s.hparam,
jsonb_build_object(
'number_val', s.number_val,
'text_val', s.text_val,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
create aggregate jsonb_concat_agg(jsonb)(
sfunc = jsonb_concat(jsonb, jsonb),
stype = jsonb
);

0 comments on commit c142e80

Please sign in to comment.