From db50ea85c904fa9058185d6e59827a950a4c28c3 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Wed, 8 Nov 2023 07:59:46 -0700 Subject: [PATCH 1/3] dbt-bigquery supports and enforces primary key constraints --- website/docs/terms/primary-key.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/terms/primary-key.md b/website/docs/terms/primary-key.md index 5921d3ca655..a5780ad84e6 100644 --- a/website/docs/terms/primary-key.md +++ b/website/docs/terms/primary-key.md @@ -73,9 +73,9 @@ The table below gives an overview of primary key support and enforcement in some Google BigQuery - ❌ + ✅ - ❌ + ✅ From ef061291961cd888069204611b1afee5e6bd9535 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:54:09 -0700 Subject: [PATCH 2/3] Value constraints for primary keys and foreign keys are _not_ enforced --- website/docs/terms/primary-key.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/terms/primary-key.md b/website/docs/terms/primary-key.md index a5780ad84e6..4acd1e8c46d 100644 --- a/website/docs/terms/primary-key.md +++ b/website/docs/terms/primary-key.md @@ -75,7 +75,7 @@ The table below gives an overview of primary key support and enforcement in some ✅ - ✅ + ❌ From b060f32d0d8b0c3c85ed330e8f690c758503b5a9 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:28:17 -0700 Subject: [PATCH 3/3] Constraints for primary keys and foreign keys are _not_ enforced --- website/docs/docs/collaborate/govern/model-contracts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/docs/collaborate/govern/model-contracts.md b/website/docs/docs/collaborate/govern/model-contracts.md index 442a20df1b6..342d86c1a77 100644 --- a/website/docs/docs/collaborate/govern/model-contracts.md +++ b/website/docs/docs/collaborate/govern/model-contracts.md @@ -125,8 +125,8 @@ Select the adapter-specific tab for more information on [constraint](/reference/ | Constraint type | Support | Platform enforcement | |:-----------------|:-------------|:---------------------| | not_null | ✅ Supported | ✅ Enforced | -| primary_key | ✅ Supported | ✅ Enforced | -| foreign_key | ✅ Supported | ✅ Enforced | +| primary_key | ✅ Supported | ❌ Not enforced | +| foreign_key | ✅ Supported | ❌ Not enforced | | unique | ❌ Not supported | ❌ Not enforced | | check | ❌ Not supported | ❌ Not enforced |