You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the column is a numeric/boolean value we need to define the filters as follows:
metrics:
- name: new_customers
label: New Customers
model: ref('customer')
description: "The number of paid customers who are using the product"
type: count
sql: c_custkey
filters:
- field: is_paying
operator: "="
value: "true"
Expected Behavior
It's ideal to use the appropriate types as follows:
metrics:
- name: new_customers
label: New Customers
model: ref('customer')
description: "The number of paid customers who are using the product"
type: count
sql: c_custkey
filters:
- field: is_paying
operator: "="
value: true
I believe that the filters.value should not enforce a type as we don't have strict operator values. The schema of value should be any.
Steps To Reproduce
No response
Relevant log output
If we pass boolean / numeric value to `metrics.filters.value`, dbt complains about the type.
Environment
- OS: MacOS
- Python: 3.9.7
- dbt: 1.0.0-rc1
What database are you using dbt with?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
If the column is a numeric/boolean value we need to define the filters as follows:
Expected Behavior
It's ideal to use the appropriate types as follows:
I believe that the
filters.value
should not enforce a type as we don't have strictoperator
values. The schema of value should beany
.Steps To Reproduce
No response
Relevant log output
If we pass boolean / numeric value to `metrics.filters.value`, dbt complains about the type.
Environment
What database are you using dbt with?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: