From 50cda834bdf758d774b86b4d445423c53ed4dc0a Mon Sep 17 00:00:00 2001 From: dimitrispie Date: Tue, 22 Jun 2021 09:37:00 +0300 Subject: [PATCH] Update createIndicatorsTables.sql --- .../oozie_app/scripts/createIndicatorsTables.sql | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dhp-workflows/dhp-indicators/src/main/resources/eu/dnetlib/dhp/oa/graph/indicators/oozie_app/scripts/createIndicatorsTables.sql b/dhp-workflows/dhp-indicators/src/main/resources/eu/dnetlib/dhp/oa/graph/indicators/oozie_app/scripts/createIndicatorsTables.sql index 8741c5bff..16635e085 100644 --- a/dhp-workflows/dhp-indicators/src/main/resources/eu/dnetlib/dhp/oa/graph/indicators/oozie_app/scripts/createIndicatorsTables.sql +++ b/dhp-workflows/dhp-indicators/src/main/resources/eu/dnetlib/dhp/oa/graph/indicators/oozie_app/scripts/createIndicatorsTables.sql @@ -1,8 +1,3 @@ -create table TARGET.funders_publications stored as parquet as -select f.id as id, count(pr.result) as total_pubs from SOURCE.funder f -join SOURCE.project p on f.name=p.funder -join SOURCE.project_results_publication pr on pr.project_results=p.id group by f.id, f.name; - create table TARGET.indi_pub_green_oa stored as parquet as select distinct p.id, coalesce(green_oa, 0) as green_oa from SOURCE.publication p @@ -47,4 +42,7 @@ join SOURCE.datasource on datasource.id = ri.hostedby where SOURCE.datasource.id like '%doajarticles%') tmp on p.id= tmp.id; -compute stats TARGET.funders_publications; \ No newline at end of file +compute stats TARGET.indi_pub_green_oa; +compute stats TARGET.indi_pub_grey_lit; +compute stats TARGET.indi_pub_doi_from_crossref; +compute stats TARGET.indi_pub_gold_oa; \ No newline at end of file