using scala 2.11 converters

This commit is contained in:
Claudio Atzori 2024-10-28 13:52:06 +01:00
parent 940735921f
commit e6ca382deb
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ public class SparkCreateDedupRecord extends AbstractSparkAction {
.read()
.load(mergeRelPath)
.where("relClass == 'merges'")
.join(dedupIds, JavaConverters.asScalaBuffer(Arrays.asList("source", "target")).toSeq(), "left_semi")
.join(
dedupIds, JavaConverters.asScalaBufferConverter(Arrays.asList("source", "target")).asScala(),
"left_semi")
.write()
.mode(SaveMode.Overwrite)
.option("compression", "gzip")