Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 20, 2021 11:46
Embed
What would you like to do?
# dsUserFiltered.show()
Caused by: NullPointerException: Null value appeared in non-nullable field:
- field (class: "scala.Int", name: "income")
- root class: "$line9228218dd17046b3aa8b6bbe593dc28a520.$read.$iw.$iw.$iw.$iw.$iw.$iw.$iw.$iw.$iw.$iw.$iw.$iw.$iw.$iw.MarketingUser"
If the schema is inferred from a Scala tuple/case class, or a Java bean, please try to use scala.Option[_] or other nullable types (e.g. java.lang.Integer instead of int/scala.Int).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment