changed refereed type from value to clssname

This commit is contained in:
antleb 2020-06-30 01:49:56 +03:00 committed by Spyros Zoupanos
parent 63cd797aba
commit ec52141f1a
1 changed files with 28 additions and 28 deletions

View File

@ -11,31 +11,31 @@
-- When it is ready they should be added to the to statistic recalculation -- When it is ready they should be added to the to statistic recalculation
-- for the impala tables and the shadow views -- for the impala tables and the shadow views
-- CREATE TABLE IF NOT EXISTS ${stats_db_name}.publication_refereed as CREATE TABLE IF NOT EXISTS ${stats_db_name}.publication_refereed as
-- select substr(r.id, 4) as id, inst.refereed.value as refereed select substr(r.id, 4) as id, inst.refereed.classsname as refereed
-- from ${openaire_db_name}.publication r lateral view explode(r.instance) instances as inst from ${openaire_db_name}.publication r lateral view explode(r.instance) instances as inst
-- where r.datainfo.deletedbyinference=false; where r.datainfo.deletedbyinference=false;
--
-- CREATE TABLE IF NOT EXISTS ${stats_db_name}.dataset_refereed as CREATE TABLE IF NOT EXISTS ${stats_db_name}.dataset_refereed as
-- select substr(r.id, 4) as id, inst.refereed.value as refereed select substr(r.id, 4) as id, inst.refereed.classsname as refereed
-- from ${openaire_db_name}.dataset r lateral view explode(r.instance) instances as inst from ${openaire_db_name}.dataset r lateral view explode(r.instance) instances as inst
-- where r.datainfo.deletedbyinference=false; where r.datainfo.deletedbyinference=false;
--
-- CREATE TABLE IF NOT EXISTS ${stats_db_name}.software_refereed as CREATE TABLE IF NOT EXISTS ${stats_db_name}.software_refereed as
-- select substr(r.id, 4) as id, inst.refereed.value as refereed select substr(r.id, 4) as id, inst.refereed.classsname as refereed
-- from ${openaire_db_name}.software r lateral view explode(r.instance) instances as inst from ${openaire_db_name}.software r lateral view explode(r.instance) instances as inst
-- where r.datainfo.deletedbyinference=false; where r.datainfo.deletedbyinference=false;
--
-- CREATE TABLE IF NOT EXISTS ${stats_db_name}.otherresearchproduct_refereed as CREATE TABLE IF NOT EXISTS ${stats_db_name}.otherresearchproduct_refereed as
-- select substr(r.id, 4) as id, inst.refereed.value as refereed select substr(r.id, 4) as id, inst.refereed.classsname as refereed
-- from ${openaire_db_name}.otherresearchproduct r lateral view explode(r.instance) instances as inst from ${openaire_db_name}.otherresearchproduct r lateral view explode(r.instance) instances as inst
-- where r.datainfo.deletedbyinference=false; where r.datainfo.deletedbyinference=false;
--
-- CREATE VIEW IF NOT EXISTS ${stats_db_name}.result_refereed as CREATE VIEW IF NOT EXISTS ${stats_db_name}.result_refereed as
-- select * from ${stats_db_name}.publication_refereed select * from ${stats_db_name}.publication_refereed
-- union all union all
-- select * from ${stats_db_name}.dataset_refereed select * from ${stats_db_name}.dataset_refereed
-- union all union all
-- select * from ${stats_db_name}.software_refereed select * from ${stats_db_name}.software_refereed
-- union all union all
-- select * from ${stats_db_name}.otherresearchproduct_refereed; select * from ${stats_db_name}.otherresearchproduct_refereed;