com.datawizards.dqm.rules.field.NotNullRule.scala Maven / Gradle / Ivy
package com.datawizards.dqm.rules.field
import org.apache.spark.sql.Row
case object NotNullRule extends FieldRule {
override def name: String = "NOT NULL"
override def validate(field: String, row: Row): Boolean = {
val value = row.getAs[Any](field)
value != null
}
}