Open romiof opened 1 year ago
My model content:
{{ dbt_utils.date_spine(
datepart="day",
start_date="cast('2020-01-01' as date)",
end_date="cast('2020-01-31' as date)"
)
}}
I am also have this exact same problem. I believe that Pull Request #90 will fix this issue. Problem is that dbt-core was updated to include dateadd and datediff among other cross-database macros and dbt-utils was subsequently modified, but in the current (0.9.0) version of tsql-utils the date_spine is still referencing dbt_util.dateadd and dbt_util.datediff intead of dbt.dateadd and dbt.datediff. The pull request fixes that.
I am having the exact same Problem, adjusting the tsql_utils date _spine macro from dbt_utils.datediff to dbt.datediff fixes the issue, as @brent3-work proposed.
I proposed a bugfix on this PR.
I had the same problem here running on Linux on a remote build VM with,
Didn't have the problem on my development desktop running on MacOS though.
and @joaquinbravo23 patch solved my problem, thanks to him for spotting the problem.
Hello!
I'm trying to run a date_spine to populate my Calendar Dimension, but it crash with Compilation Error:
Version info:
With a regression to dbt_utils 0.9.0
date_spine
worked, but had some warns: