diff --git a/scripts/generate_reports.sql b/scripts/generate_reports.sql index d584b182..20596dcc 100644 --- a/scripts/generate_reports.sql +++ b/scripts/generate_reports.sql @@ -64,6 +64,13 @@ copy ( where object not in (select id from nodes) ) to 'output/qc/missing_nodes.parquet'; +copy ( + select distinct missing_node + from 'output/qc/missing_nodes.parquet' + where split_part(missing_node, ':', 1) in (select distinct split_part(id,':',1) from nodes where provided_by = 'phenio_nodes') + order by missing_node +) to 'output/qc/missing_phenio_nodes.tsv' (format 'csv', delimiter E'\t', header false); + copy ( select edge_ingest, edge_primary_knowledge_source,