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
parent 4853c19b5e
commit 7152d47f84
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)