mergerels added to propagate relations
This commit is contained in:
parent
eb9bd42970
commit
3df703f67d
|
@ -94,7 +94,7 @@ public class SparkPropagateRelation extends AbstractSparkAction {
|
|||
FieldType.TARGET,
|
||||
getDeletedFn());
|
||||
|
||||
save(newRels.union(updated), outputRelationPath, SaveMode.Overwrite);
|
||||
save(newRels.union(updated).union(mergeRels), outputRelationPath, SaveMode.Overwrite);
|
||||
}
|
||||
|
||||
private static Dataset<Relation> processDataset(
|
||||
|
|
|
@ -420,7 +420,7 @@ public class SparkDedupTest implements Serializable {
|
|||
|
||||
long relations = jsc.textFile(testDedupGraphBasePath + "/relation").count();
|
||||
|
||||
assertEquals(826, relations);
|
||||
assertEquals(5022, relations);
|
||||
|
||||
// check deletedbyinference
|
||||
final Dataset<Relation> mergeRels = spark
|
||||
|
|
Loading…
Reference in New Issue