Skip to content

Commit 2bcfb89

Browse files
committed
move macro into separate test materialization file
1 parent 2cb9cbe commit 2bcfb89

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

dbt/include/sqlite/macros/adapters.sql

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,3 @@ that here when making the relation and everything else should Just Work
116116

117117
{% do return(tmp_relation) %}
118118
{% endmacro %}
119-
120-
{% macro sqlite__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}
121-
select
122-
{{ fail_calc }} as failures,
123-
case when {{ fail_calc }} {{ warn_if }}
124-
then 'true' else 'false' end as should_warn,
125-
case when {{ fail_calc }} {{ error_if }}
126-
then 'true' else 'false' end as should_error
127-
from (
128-
{{ main_sql }}
129-
{{ "limit " ~ limit if limit != none }}
130-
) dbt_internal_test
131-
{%- endmacro %}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% macro sqlite__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}
2+
select
3+
{{ fail_calc }} as failures,
4+
case when {{ fail_calc }} {{ warn_if }}
5+
then 'true' else 'false' end as should_warn,
6+
case when {{ fail_calc }} {{ error_if }}
7+
then 'true' else 'false' end as should_error
8+
from (
9+
{{ main_sql }}
10+
{{ "limit " ~ limit if limit != none }}
11+
) dbt_internal_test
12+
{%- endmacro %}

0 commit comments

Comments
 (0)