Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Constraints] Render 'to' and 'to_columns' fields on foreign key constraints #271

Closed
4 tasks done
MichelleArk opened this issue Jul 23, 2024 · 1 comment · Fixed by #260 or #272
Closed
4 tasks done

[Constraints] Render 'to' and 'to_columns' fields on foreign key constraints #271

MichelleArk opened this issue Jul 23, 2024 · 1 comment · Fixed by #260 or #272
Assignees
Labels

Comments

@MichelleArk
Copy link
Contributor

Housekeeping

  • I am a maintainer of dbt-adapters

Short description

As part of dbt-labs/dbt-core#8062. we are parsing and compiling new to and to_columns fields on ModelLevelConstraint and ColumnLevelConstraint. dbt-adapters should use these new fields, when populated, to render out the foreign key constraint instead of expression. expression support should remain as-is for backward-compatability.

Context

No response

Acceptance criteria

Tasks

Testing

Tasks

Security

N/A

Docs

dbt-labs/dbt-core#10414 (comment)

Consequences

This will update the base implementation of constraint rendering in a backward-compatible manner. Other adapters will be able to extend it as necessary to support to and to_columns, but will continue to be able to use the default implementation.

@FishtownBuildBot
Copy link
Collaborator

Opened a new issue in dbt-labs/docs.getdbt.com: dbt-labs/docs.getdbt.com#5845

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants