forked from D-Net/dnet-hadoop
fixed the result_result table
This commit is contained in:
parent
c2b44530a3
commit
ae633c566b
|
@ -81,7 +81,11 @@ compute stats TARGET.result_sources;
|
||||||
create table TARGET.result_topics stored as parquet as select * from SOURCE.result_topics orig where exists (select 1 from TARGET.result r where r.id=orig.id);
|
create table TARGET.result_topics stored as parquet as select * from SOURCE.result_topics orig where exists (select 1 from TARGET.result r where r.id=orig.id);
|
||||||
compute stats TARGET.result_topics;
|
compute stats TARGET.result_topics;
|
||||||
|
|
||||||
create table TARGET.result_result stored as parquet as select * from SOURCE.result_result orig where exists (select 1 from TARGET.result r where r.id=orig.source) or exists (select 1 from TARGET.result r where r.id=orig.target);
|
create view TARGET.foo1 as select * from SOURCE.result_result rr where rr.source in (select id from TARGET.result);
|
||||||
|
create view TARGET.foo2 as select * from SOURCE.result_result rr where rr.target in (select id from TARGET.result);
|
||||||
|
create table TARGET.result_result as select distinct * from (select * from TARGET.foo1 union all select * from TARGET.foo2) foufou;
|
||||||
|
drop view TARGET.foo1;
|
||||||
|
drop view TARGET.foo2;
|
||||||
compute stats TARGET.result_result;
|
compute stats TARGET.result_result;
|
||||||
|
|
||||||
-- datasources
|
-- datasources
|
||||||
|
|
Loading…
Reference in New Issue