Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
huydhn committed Oct 26, 2024
1 parent 2663287 commit 01ceb17
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
-- This query tracks the number of red commits on HUD KPIs page
-- TODO (huydhn): This query tracks the number of red commits on HUD KPIs page. This
-- is not the most efficient query around both in term of speed and memory usage. So,
-- a good BE task is to re-write this in a more efficient way, HUD code is also
-- subjected to change if need be
WITH join_with_workflow_run AS (
-- Do the join with workflow_run, then workflow_job to avoid OOM
SELECT
Expand Down Expand Up @@ -80,6 +83,7 @@ any_red AS (
classified_red AS (
SELECT
granularity_bucket,
-- CH only allows data of the same type in the array
arrayJoin(
array(
array('Broken trunk', toString(AVG(broken_trunk_red))),
Expand Down

0 comments on commit 01ceb17

Please sign in to comment.