Merge pull request 'Fix bug in conversion from dedup json model to Spark Dataset of Rows (instanceTypeMatch no longer working)' (#339) from fix_dedupfailsonmatchinginstances into master

Reviewed-on: D-Net/dnet-hadoop#339
This commit is contained in:
Claudio Atzori 2023-10-02 11:34:20 +02:00
commit 4ac06c9e37
1 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,11 @@ public class MapDocumentUtil {
return result;
}
if (type == Type.List && jresult instanceof List) {
((List<?>) jresult).forEach(x -> result.add(x.toString()));
return result;
}
if (jresult instanceof JSONArray) {
((JSONArray) jresult).forEach(it -> {
try {