You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a managed Delta table named Sales. Sales stores transaction data and contains the following columns:
• transactionjd (string)
• transaction date (date)
• amount (decimal)
You need to implement the following data quality requirements by using table-level data quality enforcement:
• amount must be greater than 0.
• transaction id must never be null.
• Invalid records must be rejected when data is written to the Sales table.
What should you do?
Submit