Skip to content

Commit

Permalink
added cvc-proj-stdate function.
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybabb committed Oct 7, 2024
1 parent ec11358 commit f9c8db5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scripts/general/cvc-project-start-date-func.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE OR REPLACE FUNCTION `clinvar_ingest.cvc_project_start_date`()
RETURNS DATE AS (
"2023-01-07"
);
2 changes: 1 addition & 1 deletion scripts/tracker-procs/02-variation-track-proc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BEGIN
from `clinvar_ingest.report_variation` rv
join `clinvar_ingest.voi_group` vg on vg.variation_id = rv.variation_id
join `clinvar_ingest.clinvar_project_releases` cv on
join `clinvar_ingest.all_schemas`() cv on
cv.release_date between vg.start_release_date and vg.end_release_date
where rv.report_id = "%s"
""", rec.tname, rec.id);
Expand Down

0 comments on commit f9c8db5

Please sign in to comment.