s&p update models

This commit is contained in:
Joaquin Ossa 2024-12-17 19:09:54 +01:00
parent 384665c487
commit c95f551acf
9 changed files with 158 additions and 39 deletions

View file

@ -0,0 +1,10 @@
{% test at_least_one_null(model, columns) %}
select *
from {{ model }}
where
{% for column in columns %}
{{ column }} is not null {% if not loop.last %} and {% endif %}
{% endfor %}
-- If all columns are not null, the row violates the test
{% endtest %}