forked from D-Net/dnet-hadoop
added column alias
This commit is contained in:
parent
62a07b7add
commit
43e123c624
|
@ -1000,7 +1000,7 @@ left outer join (
|
||||||
drop table if exists ${stats_db_name}.result_country purge; /*EOS*/
|
drop table if exists ${stats_db_name}.result_country purge; /*EOS*/
|
||||||
|
|
||||||
create table ${stats_db_name}.result_country stored as parquet as
|
create table ${stats_db_name}.result_country stored as parquet as
|
||||||
select distinct ro.id, coalesce(o.country, f.country)
|
select distinct ro.id, coalesce(o.country, f.country) as country
|
||||||
from ${stats_db_name}.result_organization ro
|
from ${stats_db_name}.result_organization ro
|
||||||
left outer join ${stats_db_name}.organization o on o.id=ro.organization
|
left outer join ${stats_db_name}.organization o on o.id=ro.organization
|
||||||
left outer join ${stats_db_name}.result_projects rp on rp.id=ro.id
|
left outer join ${stats_db_name}.result_projects rp on rp.id=ro.id
|
||||||
|
|
Loading…
Reference in New Issue