diff --git a/dbt/include/global_project/macros/materializations/tests/helpers.sql b/dbt/include/global_project/macros/materializations/tests/helpers.sql index ead727d9..fec85e38 100644 --- a/dbt/include/global_project/macros/materializations/tests/helpers.sql +++ b/dbt/include/global_project/macros/materializations/tests/helpers.sql @@ -3,6 +3,10 @@ {%- endmacro %} {% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%} + {%- set sql_header = config.get('sql_header', none) -%} + + {{ sql_header if sql_header is not none }} + select {{ fail_calc }} as failures, {{ fail_calc }} {{ warn_if }} as should_warn,