1
0
Fork 0

moved check from join to method

This commit is contained in:
Miriam Baglioni 2020-05-11 14:11:44 +02:00
parent f5d785e096
commit e563e65335
1 changed files with 3 additions and 3 deletions

View File

@ -119,8 +119,7 @@ public class SparkRemoveBlacklistedRelationJob {
.and(
inputRelation
.col("target")
.equalTo(dedupBL.col("target"))
.and(inputRelation.col("relclass").equalTo(dedupBL.col("relclass"))))),
.equalTo(dedupBL.col("target")))),
"left_outer");
log.info("numberOfRelationAfterJoin: {}", tmp.count());
@ -151,7 +150,8 @@ public class SparkRemoveBlacklistedRelationJob {
private static boolean areEquals(Relation ir, Relation bl) {
return ir.getRelClass().equals(bl.getRelClass()) &&
ir.getRelType().equals(bl.getRelType()) &&
ir.getSubRelType().equals(bl.getSubRelType());
ir.getSubRelType().equals(bl.getSubRelType()) &&
ir.getRelClass().equals(bl.getRelClass());
}
public static org.apache.spark.sql.Dataset<Relation> readRelations(