File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
examples/src/main/kotlin/org/jetbrains/kotlinx/spark/examples Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import org.apache.spark.sql.functions.*
25
25
import org.jetbrains.kotlinx.spark.api.*
26
26
import org.jetbrains.kotlinx.spark.api.tuples.*
27
27
import scala.Tuple2
28
- import scala.collection.mutable.WrappedArray
28
+ import scala.collection.Seq
29
29
30
30
31
31
fun main () {
@@ -203,7 +203,7 @@ private fun strongTypingInDatasets() = withSpark {
203
203
// advantage of!
204
204
205
205
// NOTE: In UDFs, iterables, lists, arrays and such need to be represented as WrappedArray
206
- val toJson by udf { age: Int , name: String , pets: WrappedArray <String > ->
206
+ val toJson by udf { age: Int , name: String , pets: Seq <String > ->
207
207
""" { "age" : $age , "name" : "$name ", "pets" : [${pets.asKotlinIterable().joinToString { " \" $it \" " }} ] }"""
208
208
}
209
209
You can’t perform that action at this time.
0 commit comments