Spark, discarding bad rows, and tracing them In this post you can find how I managed to discard errors in Apache Spark using Scala, with Datasets and case classes.