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
Core:
- installed: 1.8.6
- latest: 1.8.6 - Up to date!
Plugins:
- clickhouse: 1.8.3
I think that the fix could just be to sum by 1.0 and 0.0 instead of 1 and 0 which should be the same across database, and just tells dbs to use float math correctly.
select 100.0/cast(200 as numeric)
works as expected
The text was updated successfully, but these errors were encountered:
Describe the bug
dbt_utils.not_null_proportion is returning 0 in clickhouse because it is not using floats for the division
Steps to reproduce
which is basically
returns 0 in clickhouse
Expected results
.5
Actual results
0
Which database are you using dbt with?
The output of
dbt --version
:I think that the fix could just be to sum by 1.0 and 0.0 instead of 1 and 0 which should be the same across database, and just tells dbs to use float math correctly.
works as expected
The text was updated successfully, but these errors were encountered: