Skip to content
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

this_week macro calls a non-existent utils macro this_week_start #55

Closed
joellabes opened this issue Feb 1, 2022 · 1 comment · Fixed by #56
Closed

this_week macro calls a non-existent utils macro this_week_start #55

joellabes opened this issue Feb 1, 2022 · 1 comment · Fixed by #56
Labels
bug Something isn't working

Comments

@joellabes
Copy link

Repro:

compile {{ dbt_date.this_week() }} in a dbt Cloud scratchpad

Observed:

Server error: Compilation Error in rpc request (from remote system)
'dict object' has no attribute 'this_week_start'

> in macro this_week (macros/calendar_date/this_week.sql)
> called by rpc request (from remote system)

this_week_start doesn't exist in dbt utils, and I don't remember it ever being there (it doesn't appear in the changelog either).

I think that either the macro should be removed from dbt-date altogether (apparently no one's calling it anyway since it doesn't do anything) or implemented in dbt-date

@clausherther
Copy link
Contributor

Ha. Who wrote this crap! Wait, that was me. What was I thinking. I bet this is the result of a disastrous find/replace operation. And lack of testing. I'll remove it. Thanks!

@clausherther clausherther added the bug Something isn't working label Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants