mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
7 lines
280 B
SQL
7 lines
280 B
SQL
{%- macro check_model_is_table(model) -%}
|
|
{%- if model.config.materialized != 'table' -%}
|
|
{%- do exceptions.raise_compiler_error(
|
|
"Model must use the table materialization. Please check any model overrides."
|
|
) -%}
|
|
{%- endif -%}
|
|
{%- endmacro -%} |