Closed joaquinbravo23 closed 2 months ago
I was having an issue working with dbt_utils.date_spine, getting the following error:
By making this change the macro worked as expected
dbt_utils.dateadd to dbt.dateadd dbt_utils.datediff to dbt.datediff
dbt_utils.dateadd
dbt.dateadd
dbt_utils.datediff
dbt.datediff
I believe this error is due to the following:
As of dbt 1.3 and dbt_utils 1.0, cross-database macros have moved out of dbt_utils and into the main adapter code (source), so you can just dbt.datediff()and it will work. -https://stackoverflow.com/questions/75528600/dbt-datediff-dict-object-compilation-errors
Working as expected
I was having an issue working with dbt_utils.date_spine, getting the following error:
By making this change the macro worked as expected
dbt_utils.dateadd
todbt.dateadd
dbt_utils.datediff
todbt.datediff
I believe this error is due to the following:
Working as expected