1
0
Fork 0

Use asScala to convert java List to Scala Sequence

This commit is contained in:
Giambattista Bloisi 2023-09-20 16:14:01 +02:00 committed by Claudio Atzori
parent 7f244d9a7a
commit 3c47920c78
1 changed files with 2 additions and 2 deletions

View File

@ -78,10 +78,10 @@ case class SparkModel(conf: DedupConfig) {
uv
case Type.List | Type.JSON =>
Seq(MapDocumentUtil.truncateList(
MapDocumentUtil.truncateList(
MapDocumentUtil.getJPathList(fdef.getPath, documentContext, fdef.getType),
fdef.getSize
))
).asScala
case Type.StringConcat =>
val jpaths = CONCAT_REGEX.split(fdef.getPath)