Skip to content

Commit

Permalink
fix: replace join for aggregated pyramid chart with where clause
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanDavlyatshin committed Oct 23, 2024
1 parent a2464bb commit df71f8c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1179,9 +1179,9 @@ BEGIN
coverage.test_id as test_id
FROM raw_data.coverage coverage
JOIN MatchingInstances ON MatchingInstances.instance_id = coverage.instance_id AND MatchingInstances.classname = coverage.classname
LEFT JOIN TestLaunchIds ON coverage.test_id = TestLaunchIds.__id
WHERE (coverage_created_at_start IS NULL OR coverage.created_at >= coverage_created_at_start)
AND (coverage_created_at_end IS NULL OR coverage.created_at <= coverage_created_at_end)
WHERE coverage.test_id IN (SELECT __id FROM TestLaunchIds)
AND (coverage_created_at_start IS NULL OR coverage.created_at >= coverage_created_at_start)
AND (coverage_created_at_end IS NULL OR coverage.created_at <= coverage_created_at_end)
GROUP BY
MatchingInstances.signature,
MatchingInstances.body_checksum,
Expand Down

0 comments on commit df71f8c

Please sign in to comment.