|
57 | 57 | coverage_sample.total_branches,
|
58 | 58 | method_data.hit_complexity_paths,
|
59 | 59 | method_data.total_complexity,
|
60 |
| - json_group_array(branches_data.branch) as missing_branches, |
61 |
| - json_group_array(formatted_span_data.pyreport_partial) as partials, |
62 |
| - json_group_array(other_contexts.name) as labels |
| 60 | + json_group_array(branches_data.branch) filter (where branches_data.branch is not null) as missing_branches, |
| 61 | + json_group_array(formatted_span_data.pyreport_partial) filter (where formatted_span_data.pyreport_partial is not null) as partials, |
| 62 | + json_group_array(other_contexts.name) filter (where other_contexts.name is not null) as labels |
63 | 63 | from
|
64 | 64 | coverage_sample
|
65 | 65 | left join
|
@@ -123,9 +123,9 @@ select
|
123 | 123 | line_sessions.total_branches,
|
124 | 124 | line_sessions.hit_complexity_paths,
|
125 | 125 | line_sessions.total_complexity,
|
126 |
| - line_sessions.missing_branches, |
127 |
| - line_sessions.partials, |
128 |
| - line_sessions.labels |
| 126 | + iif(line_sessions.missing_branches = json_array(), null, line_sessions.missing_branches) as missing_branches, |
| 127 | + iif(line_sessions.partials = json_array(), null, line_sessions.partials) as partials, |
| 128 | + iif(line_sessions.labels = json_array(), null, line_sessions.labels) as labels |
129 | 129 | from
|
130 | 130 | line_sessions
|
131 | 131 | left join
|
|
0 commit comments