-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
date_spine
isn't working with dbt_utils 1.1.0
#96
Comments
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. |
Bug fix proposal on issue related to #96
should be fixed, report back if not please |
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:The text was updated successfully, but these errors were encountered: