Skip to content

Commit

Permalink
doc(tests): reference integration_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
axel_thevenot authored and AxelThevenot committed Feb 27, 2024
1 parent 9790cd9 commit 48a72a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ packages:
- ✅: supported
- ✔️: supported not tested
- ❌: not supported
- ℹ️: Opened to contributions ❤️ (see the integration_tests folder on how to test your adapter)
- ℹ️: Opened to contributions ❤️ (see the [integration_tests](./integration_tests/) folder on how to test your adapter)


For latest release, see [https://github.com/AxelThevenot/dbt-assertions/releases](https://github.com/AxelThevenot/dbt-assertions/releases/latest)
Expand Down
2 changes: 1 addition & 1 deletion macros/_assertions_expression.sql
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ LIST_DISTINCT([
{%- endfor %}
]) AS {{ column }}

{%- endmacro %}
{%- endmacro %}
10 changes: 5 additions & 5 deletions macros/assertions_filter.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ EXISTS (
{#- Generate filtering expression -#}
{{- 'NOT ' if reverse else '' -}}
{%- if include_list is not none -%}
ARRAY_SIZE(ARRAY_INTERSECTION({{ column }},ARRAY_CONSTRUCT('{{ include_list | join("\', \'")}}'))) = 0
ARRAY_SIZE(ARRAY_INTERSECTION({{ column }}, ARRAY_CONSTRUCT('{{ include_list | join("\', \'")}}'))) = 0
{%- elif exclude_list is not none -%}
ARRAY_SIZE(ARRAY_EXCEPT({{ column }},ARRAY_CONSTRUCT('{{ exclude_list | join("\', \'")}}'))) = 0
ARRAY_SIZE(ARRAY_EXCEPT({{ column }}, ARRAY_CONSTRUCT('{{ exclude_list | join("\', \'")}}'))) = 0
{%- else -%}
ARRAY_SIZE({{ column }}) = 0
{%- endif -%}
Expand All @@ -108,11 +108,11 @@ ARRAY_SIZE({{ column }}) = 0
{#- Generate filtering expression -#}
{{- 'NOT ' if reverse else '' -}}
{%- if include_list is not none -%}
LEN(ARRAY_INTERSECT({{ column }},['{{ include_list | join("\', \'")}}'])) = 0
LEN(ARRAY_INTERSECT({{ column }}, ['{{ include_list | join("\', \'")}}'])) = 0
{%- elif exclude_list is not none -%}
LEN(ARRAY_EXCEPT({{ column }},['{{ exclude_list | join("\', \'")}}'])) = 0
LEN(ARRAY_EXCEPT({{ column }}, ['{{ exclude_list | join("\', \'")}}'])) = 0
{%- else -%}
LEN({{ column }}) = 0
{%- endif -%}

{%- endmacro %}
{%- endmacro %}

0 comments on commit 48a72a1

Please sign in to comment.