[stats wf] Changes to indicators tables #244

Merged
claudio.atzori merged 3 commits from antonis.lempesis/dnet-hadoop:beta into beta 2022-09-16 10:14:04 +02:00
1 changed files with 11 additions and 11 deletions
Showing only changes of commit 2b5f8c9c9a - Show all commits

View File

@ -179,17 +179,17 @@ from publication_datasources pd
compute stats indi_pub_diamond; compute stats indi_pub_diamond;
create table indi_pub_hybrid stored as parquet as --create table indi_pub_hybrid stored as parquet as
select distinct pd.id, coalesce(is_hybrid, 0) as is_hybrid --select distinct pd.id, coalesce(is_hybrid, 0) as is_hybrid
from publication_datasources pd --from publication_datasources pd
left outer join ( -- left outer join (
select pd.id, 1 as is_hybrid from publication_datasources pd -- select pd.id, 1 as is_hybrid from publication_datasources pd
join datasource d on d.id=pd.datasource -- join datasource d on d.id=pd.datasource
join stats_ext.plan_s_jn ps where (ps.issn_print=d.issn_printed and ps.issn_online=d.issn_online) -- join stats_ext.plan_s_jn ps where (ps.issn_print=d.issn_printed and ps.issn_online=d.issn_online)
and (ps.journal_is_in_doaj=false and ps.journal_is_oa=false)) tmp -- and (ps.journal_is_in_doaj=false and ps.journal_is_oa=false)) tmp
on pd.id=tmp.id; -- on pd.id=tmp.id;
--
compute stats indi_pub_hybrid; --compute stats indi_pub_hybrid;
create table indi_pub_in_transformative stored as parquet as create table indi_pub_in_transformative stored as parquet as
select distinct pd.id, coalesce(is_transformative, 0) as is_transformative select distinct pd.id, coalesce(is_transformative, 0) as is_transformative