forked from D-Net/dnet-hadoop
Update step15.sql
This commit is contained in:
parent
afcad08396
commit
e06d962a6a
|
@ -35,8 +35,8 @@ 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;
|
||||||
|
|
||||||
create table if not exists indi_impact_measures as
|
create table if not exists indi_impact_measures STORED AS PARQUET as
|
||||||
select distinct substr(id, 4) as id, measures_ids.id impactmetric, measures_ids.unit.value[0] score,
|
select substr(id, 4) as id, measures_ids.id impactmetric, measures_ids.unit.value[0] score,
|
||||||
cast(measures_ids.unit.value[0] as decimal(6,3)) score_dec, measures_ids.unit.value[1] class
|
cast(measures_ids.unit.value[0] as decimal(6,3)) score_dec, measures_ids.unit.value[1] class
|
||||||
from ${openaire_db_name}.result lateral view explode(measures) measures as measures_ids
|
from ${openaire_db_name}.result lateral view explode(measures) measures as measures_ids
|
||||||
where measures_ids.id!='views' and measures_ids.id!='downloads';
|
where measures_ids.id!='views' and measures_ids.id!='downloads';
|
||||||
|
|
Loading…
Reference in New Issue