[beta] stats update workflow #128

Merged
claudio.atzori merged 8 commits from antonis.lempesis/dnet-hadoop:beta into beta 2021-07-29 11:13:21 +02:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit 9b181ffa73 - Show all commits

View File

@ -18,6 +18,12 @@ FROM ${openaire_db_name}.relation r
WHERE r.reltype = 'resultProject'
and r.datainfo.deletedbyinference = false;
create table ${stats_db_name}.project_classification as
select substr(p.id, 4) as id, class.h2020programme.code, class.level1, class.level2, class.level3
from ${openaire_db_name}project p
lateral view explode(p.h2020classification) classifs as class
where p.datainfo.deletedbyinference=false and class.h2020programme is not null;
CREATE TABLE ${stats_db_name}.project_tmp
(
id STRING,