new not_negative test

This commit is contained in:
Pablo Martin 2024-06-20 14:43:51 +02:00
parent c671701071
commit 34b678df26

View file

@ -0,0 +1,6 @@
{% test not_negative(model, column_name) %}
with validation as (select {{ column_name }} as value from {{ model }})
select *
from validation
where value < 0
{% endtest %}