Skip to content

Conversation

@rishabhtc
Copy link
Collaborator

No description provided.

MAX(COALESCE(cp."actualEndDate", cp."scheduledEndDate")) AS registration_end_date
FROM challenges."ChallengePhase" cp
JOIN challenges."Phase" p ON p.id = cp."phaseId"
JOIN base_challenges bc ON bc.id = cp."challengeId"
Copy link

Choose a reason for hiding this comment

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

[⚠️ correctness]
Ensure that the base_challenges CTE is correctly filtering and joining with ChallengePhase. If base_challenges does not contain all relevant challengeId values, this join may exclude necessary data.

MAX(COALESCE(cp."actualEndDate", cp."scheduledEndDate")) AS submission_end_date
FROM challenges."ChallengePhase" cp
JOIN challenges."Phase" p ON p.id = cp."phaseId"
JOIN base_challenges bc ON bc.id = cp."challengeId"
Copy link

Choose a reason for hiding this comment

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

[⚠️ correctness]
Verify that the base_challenges CTE includes all challengeId values needed for the submission_end CTE. If base_challenges is too restrictive, it could lead to missing data in the final report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants