You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsbot
changed the title
[Spark] Add model-level constraints to get_columns_spec_ddl
[CT-2223] [Spark] Add model-level constraints to get_columns_spec_ddl
Feb 28, 2023
Core issue: dbt-labs/dbt-core#6754
from dbt-labs/dbt-core#7067:
Spark only supports
check
constraints at the table-level. Add check constraints set at the model-level after check constraints from columns are added: https://github.com/dbt-labs/dbt-spark/blob/main/dbt/include/spark/macros/adapters.sql#L200Testing coverage is tricky here because the alter statements run after the create table statement: https://github.com/dbt-labs/dbt-spark/blob/main/tests/functional/adapter/test_constraints.py#L8
Constraint docs: https://docs.delta.io/latest/delta-constraints.html
The text was updated successfully, but these errors were encountered: