Closed pihanya closed 2 years ago
@Pihanya mind creating a PR?
@asm0dey, ok, I will create PR this week. I have ready code that getting work done. There's just a need to transfer it here.
Creating a scala-independent version of the conversions file at https://github.com/Kotlin/kotlin-spark-api/pull/175 uses JCP for the compatibility
merged for 1.2.0
https://github.com/JetBrains/kotlin-spark-api/blob/d62e3afe115c943bacd386fba28d0a13af660582/kotlin-spark-api/3.2/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt#L28-L167
JavaConverters
is partially deprecated in Scala 2.13.8: https://github.com/scala/scala/blob/2.13.x/src/library/scala/collection/JavaConverters.scala#L78-L139... so I suggest using methods from
scala.jdk.javaapi.CollectionConverters
. I am attaching a file (Conversions.kt.txt) that you can use to replace usage of deprecated methods with actual ones.