Table providers can describe table constraints using the TableConstraint and Constraints APIs. These constraints include primary keys, unique keys, foreign keys and check constraints.
DataFusion does not currently enforce these constraints at runtime. They are provided for informational purposes and can be used by custom TableProvider implementations or other parts of the system.
Field in a schema. Returning data with null values for Columns marked as not nullable will result in runtime errors during execution. DataFusion does not check or enforce nullability when data is ingested.