DBT structure change

This commit is contained in:
Yam ZhengLim
2023-05-09 09:53:28 +00:00
parent b3373e5b58
commit 2d2501cbfe
317 changed files with 7448 additions and 10782 deletions
+26
View File
@@ -0,0 +1,26 @@
{% test is_positive(model, column_name) %}
with validation as (
select
{{ column_name }} as value_field
from {{ model }}
),
validation_errors as (
select
value_field
from validation
where value_field < 0
)
select *
from validation_errors
{% endtest %}