Use the internal base mechanics to handle table constraints. https://datafusion.apache.org/library-user-guide/table-constraints.html