Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add missing reaction type in sum #7

Merged
merged 7 commits into from
Feb 27, 2023

Conversation

zhyatt
Copy link
Contributor

@zhyatt zhyatt commented Feb 15, 2023

Are you a current Fivetran customer?

Yes, Zach Hyatt, Invisible Agents LLC
What change(s) does this PR introduce?

Per the discussion here: fivetran/dbt_facebook_pages#8 this fixes null values for the total reactions count by summing the various types if null comes from the source.
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 only adds new data to an already existing field, which by default is null. The data type should be expected.

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

How did you test the PR changes?

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

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.

@zhyatt
Copy link
Contributor Author

zhyatt commented Feb 15, 2023

@fivetran-joemarkiewicz Hopefully this PR gets things moving on the fix. Thanks for working through this on fivetran/dbt_facebook_pages#8.

Copy link
Collaborator

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

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

@zhyatt thanks again so much for opening this PR! The changes you are suggesting look great and I was able to test locally and see that the null value for the total does indeed get resolved with this coalesce and addition calculation.

I had one small suggestion in the code as well as a few small requests:

  • Would you be able to update the CHANGELOG for this next patch release (v0.2.1). Don't forget to include yourself as a contributor!
  • Would you be able to increment the dbt_project.yml and integration_tests/dbt_project.yml versions to be 0.2.1 to reflect this upcoming release.

Let me know if you have any questions regarding these requests. Once those are applied I can re-review and fold this into the next release!

@zhyatt
Copy link
Contributor Author

zhyatt commented Feb 17, 2023

Once those are applied I can re-review and fold this into the next release!

The small code suggestion and updates for the patch release have been completed. Sending your way for review!

@fivetran-joemarkiewicz
Copy link
Collaborator

Thanks so much @zhyatt! Apologies for the delay as I was on PTO. I will review the updates and work to integrate into the next release this week!

Copy link
Collaborator

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

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

@zhyatt thanks so much for working on this PR and addressing the original issue you raised with our team! I am happy to approve this PR 😄

I will now kick off the internal release review process. You should see your changes live in 0.2.1 on Monday morning (we have a release freeze for Fridays).

@fivetran-joemarkiewicz fivetran-joemarkiewicz merged commit 4e8881b into fivetran:main Feb 27, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants