Skip to content

Commit

Permalink
Tidy up Jinja
Browse files Browse the repository at this point in the history
  • Loading branch information
clrcrl committed Dec 23, 2020
1 parent 0cd7ade commit e5dd0b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion macros/schema_tests/expression_is_true.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ validation_errors as (
select
*
from meet_condition
where not( {{ expression if column_name is none else [column_name, expression] | join(' ') }})
{% if column_name is none %}
where not({{ expression }})
{%- else %}
where not({{ column_name }} {{ expression }})
{%- endif %}

)

Expand Down

0 comments on commit e5dd0b1

Please sign in to comment.