Fix bug in conversion from dedup json model to Spark Dataset of Rows (instanceTypeMatch no longer working) #339

Merged
claudio.atzori merged 2 commits from fix_dedupfailsonmatchinginstances into master 2023-10-02 11:34:20 +02:00
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 {