scala> val data = Seq(("1","one",null),(null,"2","null"),("3",null,null),(null,null,null),("4","four","IV")).toDF
scala> data.show
+----+----+----+
| _1| _2| _3|
+----+----+----+
| 1| one|null|
|null| 2|null|
| 3|null|null|
|null|null|null|
| 4|four| IV|
+----+----+----+
scala> val error = data.filter(x=>x.anyNull)
scala> error.show
+----+----+----+
| _1| _2| _3|
+----+----+----+
| 1| one|null|
|null| 2|null|
| 3|null|null|
|null|null|null|
+----+----+----+
scala> val correct_data =data.except(error)
scala> correct_data.show
+---+----+---+
| _1| _2| _3|
+---+----+---+
| 4|four| IV|
+---+----+---+