1
0
Fork 0

Bug fixes

This commit is contained in:
dimitrispie 2023-01-12 17:19:19 +02:00
parent 34d4bf727c
commit 4d7553c9f1
1 changed files with 0 additions and 4 deletions

View File

@ -2,10 +2,6 @@ DROP TABLE IF EXISTS TARGET.result_new;
create table TARGET.result_new stored as parquet as create table TARGET.result_new stored as parquet as
select distinct * from ( select distinct * from (
select * from SOURCE.result r where exists (select 1 from SOURCE.result_projects rp join SOURCE.project p on rp.project=p.id where rp.id=r.id)
union all
select * from SOURCE.result r where exists (select 1 from SOURCE.result_concepts rc where rc.id=r.id)
union all
select * from SOURCE.result r where exists (select 1 from SOURCE.result_organization ro where ro.id=r.id and ro.organization in ( select * from SOURCE.result r where exists (select 1 from SOURCE.result_organization ro where ro.id=r.id and ro.organization in (
-- 'openorgs____::b8b8ca674452579f3f593d9f5e557483', -- University College Cork -- 'openorgs____::b8b8ca674452579f3f593d9f5e557483', -- University College Cork
'openorgs____::38d7097854736583dde879d12dacafca' -- Brown University 'openorgs____::38d7097854736583dde879d12dacafca' -- Brown University