Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sql/reports/topgear/hourly.sql
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ submission_end AS (
FROM challenges."ChallengePhase" cp
JOIN challenges."Phase" p ON p.id = cp."phaseId"
WHERE p.name IN ('Topcoder Submission', 'Topgear Submission', 'Submission')
GROUP BY cp."challengeId"
GROUP BY cp."challengeId", cp."scheduledEndDate"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Adding cp."scheduledEndDate" to the GROUP BY clause changes the granularity of the aggregation. Ensure that this change is intentional and that it aligns with the desired output, as it may result in more granular rows than before.

)
SELECT
bc."updatedAt" AS modify_date,
Expand Down
Loading