Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 20, 2021 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1ambda/b5d5641a379f3766db7ea4de8aa02993 to your computer and use it in GitHub Desktop.
Save 1ambda/b5d5641a379f3766db7ea4de8aa02993 to your computer and use it in GitHub Desktop.
# 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