-
Notifications
You must be signed in to change notification settings - Fork 47
Schema Change: Field deprecations/sunsetting #155
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
Merged
fivetran-avinash
merged 11 commits into
main
from
schema-change/field-deprecations-and-sunsetting
Apr 29, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a870f91
Schema Change: Field deprecations/sunsetting
fivetran-avinash cd778b4
yml update
fivetran-avinash 11cb9fb
dbt_project.yml
fivetran-avinash 7fdd118
Shop filter deleted records out
fivetran-avinash d19eb8c
Changelog
fivetran-avinash fe7ee9a
Deprecation changelog updates
fivetran-avinash 7d7a246
changelog updates
fivetran-avinash a527b9b
Generate dbt docs via GitHub Actions
github-actions[bot] 663bdc5
Release review
fivetran-avinash a05770b
Merge branch 'schema-change/field-deprecations-and-sunsetting' of htt…
fivetran-avinash 799c427
Generate dbt docs via GitHub Actions
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,3 +78,4 @@ final as ( | |
|
|
||
| select * | ||
| from final | ||
| where not coalesce(is_deleted, false) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neither the
body_htmlorpublished_scopefield from thestg_shopify_gql__productmodel is documented in the yml, but they should probably be added and then documented as being deprecated. Same goes forpre_tax_priceandpre_tax_price_setfrom thestg_shopify_gql__order_line model,inventory_quantity_management,inventory_quantity_adjustment, andpresentment_prices fieldsfrom thestg_shopify_gql__product_variantmodel, and thecostfield from thestg_shopify_gql__inventory_item.sqlmodel.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ok as is? These fields were only present into the REST models and never brought into the GraphQL models, so we don't need to add deprecation documentation as they aren't currently present anywhere in the GraphQL macro/staging flow.
Macros (present in REST, not in GraphQL)
https://github.com/fivetran/dbt_shopify/blob/main/macros/staging/get_order_line_columns.sql#L40
https://github.com/fivetran/dbt_shopify/blob/main/macros/staging/get_product_variant_columns.sql#L44
https://github.com/fivetran/dbt_shopify/blob/main/macros/staging/get_inventory_item_columns.sql#L35
Models (present in REST, not in GraphQL)
https://github.com/fivetran/dbt_shopify/blob/main/models/graphql/staging/stg_shopify_gql__order_line.sql
https://github.com/fivetran/dbt_shopify/blob/main/models/graphql/staging/stg_shopify_gql__product_variant.sql
https://github.com/fivetran/dbt_shopify/blob/main/models/graphql/staging/stg_shopify_gql__inventory_item.sql
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, did not realize that!