I would like to compute the avg for boolean column with assumption that (True -> 1, False -> 0, null -> 0).
I have implemented the function is_logical_dtype in cross_db_utils.sql macros and also updated the get_profile.sql
Checklist
[x ] I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered):
[ x] Postgres
[ x] BigQuery
[ ] Snowflake
[ ] Redshift
[ ] SQL Server
[ ] Databricks
[ x] I have written tests for new macros (either as dbt schema tests in integration_tests/models, dbt data tests in integration_tests/tests or integration tests in the CI workflow)
Description & motivation
avg
forboolean
column with assumption that (True -> 1, False -> 0, null -> 0).is_logical_dtype
incross_db_utils.sql
macros and also updated theget_profile.sql
Checklist
integration_tests/models
, dbt data tests inintegration_tests/tests
or integration tests in the CI workflow)