forked from D-Net/dnet-hadoop
Aggiornare 'dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/PrepareResultInstRepoAssociation.java'
fix in SQL query: while writing the blacklist constraint it used d.id to indicate the datasource id, but no alias for the datasource was defined. So I removed the alias
This commit is contained in:
parent
abd88f663d
commit
32b0c27217
|
@ -93,9 +93,9 @@ public class PrepareResultInstRepoAssociation {
|
||||||
SparkSession spark, String datasourceOrganizationPath, List<String> blacklist) {
|
SparkSession spark, String datasourceOrganizationPath, List<String> blacklist) {
|
||||||
String blacklisted = "";
|
String blacklisted = "";
|
||||||
if (blacklist.size() > 0) {
|
if (blacklist.size() > 0) {
|
||||||
blacklisted = " AND d.id != '" + blacklist.get(0) + "'";
|
blacklisted = " AND id != '" + blacklist.get(0) + "'";
|
||||||
for (int i = 1; i < blacklist.size(); i++) {
|
for (int i = 1; i < blacklist.size(); i++) {
|
||||||
blacklisted += " AND d.id != '" + blacklist.get(i) + "'";
|
blacklisted += " AND id != '" + blacklist.get(i) + "'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue