Fix bug in conversion from dedup json model to Spark Dataset of Rows: list of strings contained the json escaped representation of the value instead of the plain value, this caused instanceTypeMatch failures because of the leading and trailing double quotes
This commit is contained in:
parent
5d09b7db8b
commit
c412dc162b
|
@ -117,6 +117,11 @@ public class MapDocumentUtil {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == Type.List && jresult instanceof List) {
|
||||||
|
((List<?>) jresult).forEach(x -> result.add(x.toString()));
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
if (jresult instanceof JSONArray) {
|
if (jresult instanceof JSONArray) {
|
||||||
((JSONArray) jresult).forEach(it -> {
|
((JSONArray) jresult).forEach(it -> {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue