dbt-labs / dbt-spark

dbt-spark contains all of the code enabling dbt to work with Apache Spark and Databricks
https://getdbt.com
Apache License 2.0
395 stars 221 forks source link

[CT-2215] [Spark] Use new ColumnLevelConstraint structure in spark__alter_table_add_constraints and spark__alter_column_set_constraints #655

Closed MichelleArk closed 1 year ago

MichelleArk commented 1 year ago

Core issue: https://github.com/dbt-labs/dbt-core/issues/7066

Refactor spark__alter_table_add_constraints and spark__alter_column_set_constraints to use the new constraints data structure in favour of the existing constraints and constraints_check.

Adapter specific tests should not need to change the existing expected_sql fixture is still the expected result!