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

bugfix/start-of-week patch #68

Merged
merged 4 commits into from
Mar 28, 2022
Merged

Conversation

fivetran-joemarkiewicz
Copy link
Contributor

Are you a current Fivetran customer?

Fivetran created PR

What change(s) does this PR introduce?

It was brought to our attention that the dbt_utils.date_trunc macro only leverages the default arguments of the date_trunc function in the various warehouses. For example, date_trunc in Snowflake for the week argument produces the starting Monday, while BigQuery produces the starting Sunday. For this package, we want to leverage the start of the week as Sunday. Therefore, logic within the business metric intermediate models has been adjusted to capture the start of the week as Sunday. This was done by leveraging the week_start macro within the dbt-date package.

Did you update the CHANGELOG?

  • Yes

Does this PR introduce a breaking change?

  • Yes (please provide breaking change details below.)
  • No (please provide an explanation as to how the change is non-breaking below.)

This will simply fix underlying date logic for business metrics and will not result in a breaking change.

Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)

  • Yes

Is this PR in response to a previously created Bug or Feature Request

  • Yes, this was an internal issue that was raised
  • No

How did you test the PR changes?

  • CircleCi
  • Local (please provide additional testing details below)

These changes were tested with the user who raised the issue and we were able to see the business metrics tie out accurately with the new changes.

Select which warehouse(s) were used to test the PR

  • BigQuery
  • Redshift
  • Snowflake
  • Postgres
  • Databricks
  • Other (provide details below)

Provide an emoji that best describes your current mood

Feedback

We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next.

@fivetran-joemarkiewicz fivetran-joemarkiewicz added the bug Something isn't working label Mar 21, 2022
@fivetran-joemarkiewicz fivetran-joemarkiewicz marked this pull request as ready for review March 21, 2022 18:56
@fivetran-joemarkiewicz fivetran-joemarkiewicz removed the request for review from fivetran-jamie March 21, 2022 19:01
Copy link
Contributor

@fivetran-jamie fivetran-jamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!!

packages.yml Show resolved Hide resolved
@fivetran-joemarkiewicz fivetran-joemarkiewicz merged commit 90ce271 into main Mar 28, 2022
@fivetran-joemarkiewicz fivetran-joemarkiewicz deleted the bugfix/start-of-week branch March 28, 2022 16:04
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 this pull request may close these issues.

2 participants