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

Feature: Union schema compatibility #22

Merged
merged 13 commits into from
Jul 23, 2024

Conversation

fivetran-catfritz
Copy link
Contributor

@fivetran-catfritz fivetran-catfritz commented Jul 15, 2024

Issue:

Confirm the following files were correctly updated automatically:

  • CHANGELOG
  • README
  • apple_store.yml
  • docs.md
  • joins
    • note when joining the seeded country_codes, source_relation would not be included
  • window functions (partition by)
  • 'source_relation' column added in transform models
  • tests

Manual updates:

  • Add source_relation to downstream models if necessary
  • Finish any incomplete/incorrect joins/partitions
  • Update tests to include source_relation in unique-combination-of-cols if necessary
    • May need to remove some uniqueness tests in favor of the combo test

Validation:

  • Consistency: When not using unioning, tests in the folder tests/consistency/row_counts pass

    • It is is expected that the consistency tests will not pass when unioning
  • Integrity: I was able to write 1 integrity test for app_store_territory_source_type_report since there wasn't much aggregation from the source, but the others were too complex to write a meaningful test.

  • Spot check with seed data for unioning:

    • Screenshot 2024-07-18 at 1 06 11 PM
  • Also:

    • see internal ticket

@fivetran-catfritz fivetran-catfritz self-assigned this Jul 17, 2024
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.

@fivetran-catfritz great work on this PR! I just have a few small requests before approving this PR. Let me know if you have any questions. Thanks!

packages.yml Outdated
Comment on lines 2 to 6
# version: [">=0.3.0", "<0.4.0"]
- git: https://github.com/fivetran/dbt_apple_store_source.git
revision: MagicBot/add-union-schema
warn-unpinned: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

Reminder to swap before merge

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor Author

@fivetran-catfritz fivetran-catfritz left a comment

Choose a reason for hiding this comment

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

@fivetran-joemarkiewicz I have updated, and this is ready for re-review!

CHANGELOG.md Outdated Show resolved Hide resolved
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.

LGTM thanks for applying the changes!

@fivetran-catfritz fivetran-catfritz merged commit 321bdbb into main Jul 23, 2024
8 checks passed
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