1
0
Fork 0

fixed a typo in queries

This commit is contained in:
Antonis Lempesis 2020-07-01 13:23:59 +03:00 committed by Spyros Zoupanos
parent 391cf80fb8
commit de49173420
2 changed files with 5 additions and 10 deletions

View File

@ -6,28 +6,23 @@
------------------------------------------------------
------------------------------------------------------
-- To be commented out after the following queries are adapted to
-- the new openAIRE graph schema.
-- When it is ready they should be added to the to statistic recalculation
-- for the impala tables and the shadow views
CREATE TABLE IF NOT EXISTS ${stats_db_name}.publication_refereed as
select substr(r.id, 4) as id, inst.refereed.classsname as refereed
select substr(r.id, 4) as id, inst.refereed.classname as refereed
from ${openaire_db_name}.publication r lateral view explode(r.instance) instances as inst
where r.datainfo.deletedbyinference=false;
CREATE TABLE IF NOT EXISTS ${stats_db_name}.dataset_refereed as
select substr(r.id, 4) as id, inst.refereed.classsname as refereed
select substr(r.id, 4) as id, inst.refereed.classname as refereed
from ${openaire_db_name}.dataset r lateral view explode(r.instance) instances as inst
where r.datainfo.deletedbyinference=false;
CREATE TABLE IF NOT EXISTS ${stats_db_name}.software_refereed as
select substr(r.id, 4) as id, inst.refereed.classsname as refereed
select substr(r.id, 4) as id, inst.refereed.classname as refereed
from ${openaire_db_name}.software r lateral view explode(r.instance) instances as inst
where r.datainfo.deletedbyinference=false;
CREATE TABLE IF NOT EXISTS ${stats_db_name}.otherresearchproduct_refereed as
select substr(r.id, 4) as id, inst.refereed.classsname as refereed
select substr(r.id, 4) as id, inst.refereed.classname as refereed
from ${openaire_db_name}.otherresearchproduct r lateral view explode(r.instance) instances as inst
where r.datainfo.deletedbyinference=false;

View File

@ -237,7 +237,7 @@
<param>stats_db_name=${stats_db_name}</param>
<param>stats_db_shadow_name=${stats_db_shadow_name}</param>
</hive2>
<ok to="Step17"/>
<ok to="Step18"/>
<error to="Kill"/>
</action>