Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 05:29 AM
You can only declare Primary and foreign keys on fields on Unity Catalog.
You also need Databricks Runtime 11.1+
Otherwise only NOT NULL and CHECK constraints are supported.
More info : https://docs.databricks.com/tables/constraints.html