forked from D-Net/dnet-hadoop
Fix to consider the relationships that have been 'virtually deleted' for project_results - defect #5607
This commit is contained in:
parent
5546f29e63
commit
3630794cef
|
@ -13,7 +13,7 @@ CREATE TABLE ${stats_db_name}.project_organizations AS SELECT substr(r.source, 4
|
||||||
|
|
||||||
-- Project_results Table
|
-- Project_results Table
|
||||||
DROP TABLE IF EXISTS ${stats_db_name}.project_results;
|
DROP TABLE IF EXISTS ${stats_db_name}.project_results;
|
||||||
CREATE TABLE ${stats_db_name}.project_results AS SELECT substr(r.target, 4) AS id, substr(r.source, 4) AS result FROM ${openaire_db_name}.relation r WHERE r.reltype='resultProject';
|
CREATE TABLE ${stats_db_name}.project_results AS SELECT substr(r.target, 4) AS id, substr(r.source, 4) AS result FROM ${openaire_db_name}.relation r WHERE r.reltype='resultProject' and r.datainfo.deletedbyinference=false;
|
||||||
|
|
||||||
-- Project table
|
-- Project table
|
||||||
----------------
|
----------------
|
||||||
|
|
Loading…
Reference in New Issue