forked from D-Net/dnet-hadoop
Fix: when applying enrichments with no instance information the resulting merge entity was generated with no instance instead of keeping the original information
This commit is contained in:
parent
00ad21d814
commit
69c5efbd8b
|
@ -874,9 +874,11 @@ public class MergeUtils {
|
||||||
if (toEnrichInstances == null) {
|
if (toEnrichInstances == null) {
|
||||||
return enrichmentResult;
|
return enrichmentResult;
|
||||||
}
|
}
|
||||||
if (enrichmentInstances == null) {
|
|
||||||
return enrichmentResult;
|
if (enrichmentInstances == null || enrichmentInstances.isEmpty()) {
|
||||||
|
return toEnrichInstances;
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, Instance> ri = toInstanceMap(enrichmentInstances);
|
Map<String, Instance> ri = toInstanceMap(enrichmentInstances);
|
||||||
|
|
||||||
toEnrichInstances.forEach(i -> {
|
toEnrichInstances.forEach(i -> {
|
||||||
|
|
Loading…
Reference in New Issue