Skip to content

Commit

Permalink
forbid enforced model contracts on source, table_with_connector and sink
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Dec 23, 2023
1 parent dd1f007 commit eb220c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dbt/include/risingwave/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,9 @@
{%- endmacro %}

{% macro risingwave__run_sql(sql) -%}
{% set contract_config = config.get('contract') %}
{% if contract_config.enforced %}
{{exceptions.warn("Model contracts cannot be enforced for source, table_with_connector and sink")}}
{%- endif %}
{{ sql }};
{%- endmacro %}

0 comments on commit eb220c9

Please sign in to comment.