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

pinterest-source-32 #35

Conversation

JessicaKMarkiewicz
Copy link

@JessicaKMarkiewicz JessicaKMarkiewicz commented Sep 17, 2024

Please provide your name and company
Jessica Markiewicz

Link the issue/feature request which this PR is meant to address

Issue #32

Detail what changes this PR introduces and how this addresses the issue/feature request linked above.

  • Updated the is_most_recent_record window function in the following models to exclude the source_relation field from the partition statement when pinterest_ads_union_schemas or pinterest_ads_union_databases variables are empty. Also, modified it to skip the window function if the upstream table is empty, using the new window_function_if_table_exists() and is_table_empty() macros. This change addresses Redshift's issue with partitioning by constant expressions.
    • stg_pinterest_ads__ad_group_history
    • stg_pinterest_ads__advertiser_history
    • stg_pinterest_ads__campaign_history
    • stg_pinterest_ads__keyword_history
    • stg_pinterest_ads__pin_promotion_history

How did you validate the changes introduced within this PR?

Which warehouse did you use to develop these changes?

  • Did not run, just made code changes.

Did you update the CHANGELOG?

  • Yes

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

Typically there are additional maintenance changes required before this will be ready for an upcoming release. Are you comfortable with the Fivetran team making a few commits directly to your branch?

  • Yes
  • No

If you had to summarize this PR in an emoji, which would it be?

😸

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.

PR Template

@JessicaKMarkiewicz JessicaKMarkiewicz marked this pull request as ready for review September 17, 2024 15:33
@fivetran-joemarkiewicz fivetran-joemarkiewicz changed the base branch from main to release/v0.10.2 September 18, 2024 13:36
Copy link
Contributor

@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.

@JessicaKMarkiewicz thanks so much for contributing this PR! 🎉

This PR looks great and should do the trick to address the original issue. There are a few final changes necessary before this will be good to merge into main and we also need to ensure it passes our integration tests. Therefore, I'll plan to merge this into a release branch to make those final changes and tests.

I imagine you should see this integrated into the main Pinterest Source release by the end of the week.

@fivetran-joemarkiewicz fivetran-joemarkiewicz merged commit fb87c82 into fivetran:release/v0.10.2 Sep 18, 2024
@fivetran-joemarkiewicz fivetran-joemarkiewicz mentioned this pull request Sep 18, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants