Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fabric+constraints - #9589

#9589
Open
nataliefiann wants to merge 5 commits into
currentdbt-labs/docs.getdbt.com:currentfrom
nfiann-fabricconstraintsdbt-labs/docs.getdbt.com:nfiann-fabricconstraintsCopy head branch name to clipboard
Open

Fabric+constraints#9589
nataliefiann wants to merge 5 commits into
currentdbt-labs/docs.getdbt.com:currentfrom
nfiann-fabricconstraintsdbt-labs/docs.getdbt.com:nfiann-fabricconstraintsCopy head branch name to clipboard

Conversation

@nataliefiann

@nataliefiann nataliefiann commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Resolves JIRA:PRODDOCS-1206

This PR adds Microsoft Fabric constraint documentation.

A customer on a Fabric PoC noted that Fabric was missing from the constraints page and felt under-documented compared to other adapters. The dbt-fabric adapter supports constraints and model contracts (with limits), but the docs did not reflect that.
This PR:

  • Adds a Fabric tab to the platform constraint support table (_constraints-table.md), which also updates the Model contracts page
  • Adds a Fabric section under Platform-specific support on the Constraints page, including examples and expected SQL
  • Adds a Model contracts section to Microsoft Fabric Data Warehouse configurations, with a note on using data tests as an alternative to check constraints
  • Fixes the microbatch checkmark for dbt-fabric on the incremental strategy table (already documented in fabric-configs.md and supported in the adapter)
    Fabric constraint behavior documented:
  • not_null is checked when the model builds
  • primary_key, foreign_key, and unique are supported but not checked by Fabric
  • check is not supported; use data tests instead

Checklist


🚀 Deployment available! Here are the direct links to the updated files:

@nataliefiann
nataliefiann requested a review from a team as a code owner July 10, 2026 16:44
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-getdbt-com Ready Ready Preview Jul 13, 2026 9:31am

Request Review

@github-actions github-actions Bot added the content Improvements or additions to content label Jul 10, 2026
@ludwig-sewall

Copy link
Copy Markdown

Looks very good to me. This was exactly the type of change I was looking for 😊

Comment thread website/docs/reference/resource-properties/constraints.md Outdated
Comment thread website/docs/reference/resource-properties/constraints.md Outdated
Comment thread website/docs/reference/resource-properties/constraints.md Outdated
Comment thread website/docs/reference/resource-properties/constraints.md Outdated
Co-authored-by: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>

Only `not_null` is checked when the model builds. Other supported constraint types are recorded on the table for reference, but Microsoft Fabric does not check them when new data is added. Use [data tests](/docs/build/data-tests) if you need to verify those rules.

:::note

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you feel the note is necessary given the table defines that it it not supported?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I've removed the note. The table and paragraph already cover it.

Comment thread website/docs/reference/resource-properties/constraints.md Outdated
The support table and paragraph already cover data tests as an alternative.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content Improvements or additions to content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.