Constraint¶
Constraint
is an abstraction of table constraints that writers have to assert before writing.
Contract¶
Name¶
name: String
Used when:
InvariantViolationException
utility is used to create an InvariantViolationException for a check constraint
Implementations¶
Sealed Trait
Constraint
is a Scala sealed trait which means that all of the implementations are in the same compilation unit (a single file).
Check¶
A constraint with a SQL expression (Spark SQL) to check for when writing out data
NotNull¶
A constraint on a column to be not null
Name: NOT NULL