diff --git a/dbt/include/synapse/macros/materializations/models/view/create_view_as.sql b/dbt/include/synapse/macros/materializations/models/view/create_view_as.sql index 7deee62e..9bdd0bb8 100644 --- a/dbt/include/synapse/macros/materializations/models/view/create_view_as.sql +++ b/dbt/include/synapse/macros/materializations/models/view/create_view_as.sql @@ -4,9 +4,9 @@ {% set contract_config = config.get('contract') %} - {{exceptions.warn("Model contracts cannot be enforced by !")}} {% if contract_config.enforced %} + {{ exceptions.warn("Model contracts cannot be enforced by !" }} {{ get_assert_columns_equivalent(sql) }} {%- endif %}