From 28272c1b0e6435818a1e589d6f6597e910ca126c Mon Sep 17 00:00:00 2001 From: dimitrispie Date: Wed, 7 Jun 2023 15:34:01 +0300 Subject: [PATCH] Bug fix --- .../stats/oozie_app/scripts/step16-createIndicatorsTables.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16-createIndicatorsTables.sql b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16-createIndicatorsTables.sql index f523b63d5..15d28400e 100755 --- a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16-createIndicatorsTables.sql +++ b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16-createIndicatorsTables.sql @@ -119,7 +119,7 @@ drop table tmp purge; ANALYZE TABLE indi_result_org_country_collab COMPUTE STATISTICS; -create TEMPORARY TABLE AS +create TEMPORARY TABLE tmp AS select o.id organization, o.name, ro.project as project from organization o join organization_projects ro on o.id=ro.id where o.name is not null; @@ -130,6 +130,8 @@ from tmp as o1 where o1.organization<>o2.organization and o1.name<>o2.name group by o1.name,o2.name, o1.organization, o2.organization; +drop table tmp purge; + ANALYZE TABLE indi_project_collab_org COMPUTE STATISTICS; create TEMPORARY TABLE tmp AS