Various fixes for the stats DB update workflow, step16-createIndicatorsTables.sql #425

Merged
claudio.atzori merged 4 commits from stats_step16_fix into master 2024-04-18 11:25:24 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 43e123c624 - Show all commits

View File

@ -1000,7 +1000,7 @@ left outer join (
drop table if exists ${stats_db_name}.result_country purge; /*EOS*/
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
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