Hi,
I am getting the below error while running custom generic test.Can anyone help me out how to fix this error?
‘test_Quantity_greater_than_10’ is undefined. This can happen when calling a macro that does not exist. Check for typos and/or install package dependencies with “dbt deps”.
version: 2
models:
- name: STG_PRODUCT
columns:- name: quantity
tests:- Quantity_greater_than_10
- name: quantity
{% test Quantity_greater_than_10(model,column_name) %}
with Product as (
select {{column_name}} as quantity
from {{model}}
)
select * from Product
where quantity>10
{% endtest %}