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

[CT-2221] [BigQuery] Add model-level constraints to get_columns_spec_ddl #569

Closed
Tracked by #6747
MichelleArk opened this issue Feb 28, 2023 · 0 comments · Fixed by #648
Closed
Tracked by #6747

[CT-2221] [BigQuery] Add model-level constraints to get_columns_spec_ddl #569

MichelleArk opened this issue Feb 28, 2023 · 0 comments · Fixed by #648
Assignees

Comments

@MichelleArk
Copy link
Contributor

Core issue: dbt-labs/dbt-core#6754

BigQuery only supports the not_null constraint

constraint type support
not_null enforced
primary_key not supported
foreign_key not supported
unique not supported
check not supported

BigQuery does not support model-level constraints, so no need to render them in the ddl. We'll just need to ensure tests are passing - skipping any model-level constraint tests inherited from the base adapter tests class.

Constraint docs: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language

@github-actions github-actions bot changed the title [BigQuery] Add model-level constraints to get_columns_spec_ddl [CT-2221] [BigQuery] Add model-level constraints to get_columns_spec_ddl Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants