Kotlin / kotlin-spark-api

This projects gives Kotlin bindings and several extensions for Apache Spark. We are looking to have this as a part of Apache Spark 3.x
Apache License 2.0
456 stars 34 forks source link

Encoding for Scala Option and Optional #150

Open Jolanrensen opened 2 years ago

Jolanrensen commented 2 years ago

While Dataset<Option<*>> works, whereever a schema needs to be created, such as Dataset<Pair<*, Option<*>>, then it fails. Option is a Product but is handled as if it doesn't exist in Scala. Meaning Option<T> is encoded as T.

This needs to be looked into