Skip to content

Commit

Permalink
added last dependent tables for procs to initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybabb committed Oct 1, 2024
1 parent 59f0e9d commit 8633e18
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions scripts/temporal-table-procs/initialize-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,62 @@ CREATE OR REPLACE TABLE `clinvar_ingest.clinvar_var_scv_change`
variation_id STRING NOT NULL,
start_release_date DATE,
end_release_date DATE
);




CREATE OR REPLACE TABLE `clinvar_ingest.voi_group`
(
start_release_date DATE,
end_release_date DATE,
variation_id STRING,
rpt_stmt_type STRING,
rank INT64,
unique_clinsig_type_count INT64,
agg_sig_type INT64,
sig_type ARRAY<STRUCT<count INT64, percent NUMERIC>>,
max_last_evaluated DATE,
max_submission_date DATE,
submission_count INT64,
submitter_count INT64,
agg_classif STRING,
agg_classif_w_count STRING
);


CREATE OR REPLACE TABLE `clinvar_ingest.voi_scv`
(
variation_id STRING,
id STRING,
version INT64,
full_scv_id STRING,
rpt_stmt_type STRING,
rank INT64,
last_evaluated DATE,
classif_type STRING,
submitted_classification STRING,
clinsig_type INT64,
classification_label STRING,
classification_abbrev STRING,
submitter_id STRING,
submitter_name STRING,
submitter_abbrev STRING,
submission_date DATE,
origin STRING,
affected_status STRING,
method_type STRING,
start_release_date DATE,
end_release_date DATE,
deleted_release_date DATE,
deleted_count INT64
);

CREATE OR REPLACE TABLE `clinvar_ingest.voi_scv`
(
variation_id STRING,
rpt_stmt_type STRING,
top_rank INT64,
start_release_date DATE,
end_release_date DATE
);

0 comments on commit 8633e18

Please sign in to comment.