-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add deleted connector statuses to fivetran_platform__connector_status
#112
Add deleted connector statuses to fivetran_platform__connector_status
#112
Conversation
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.
@fivetran-avinash thanks for working through this PR! This is looking great, I just have a few considerations that we should apply before being approved. Let me know if you have any questions. Thanks!
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.
@fivetran-joemarkiewicz Changes applied! Ran into an error re: SQL Server, but resolved it I think.
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.
@fivetran-avinash thanks for making the requested changes. This looks good to go with just one small suggestion to simplify the conditional logic in the staging model.
@@ -25,7 +25,8 @@ final as ( | |||
destination_id, | |||
connecting_user_id, | |||
paused as is_paused, | |||
signed_up as set_up_at | |||
signed_up as set_up_at, | |||
coalesce(_fivetran_deleted, {% if target.type == 'sqlserver' %} 0 {% else %} false {% endif %}) as is_deleted |
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.
small suggestion to consolidate the conditional code here.
coalesce(_fivetran_deleted, {% if target.type == 'sqlserver' %} 0 {% else %} false {% endif %}) as is_deleted | |
coalesce(_fivetran_deleted,{{ ' 0 ' if target.type == 'sqlserver' else ' false'}}) as is_deleted |
PR Overview
This PR will address the following Issue/Feature: [#108]
This PR will result in the following new package version: 1.4.3
Column added in a staging model does not cause breaking changes.
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
connector_health
dimension infivetran_platform__connector_status
to showdeleted
for connectors that had been removed. Previously the connector would report the last known status before deletion, which is inaccurate based on the definition of this measure.is_deleted
dimension (based on the_fivetran_deleted
value) tostg_fivetran__platform__connector
to capture connectors that are deleted in the downstreamfivetran_platform__connector_status
model.PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:
Before marking this PR as "ready for review" the following have been applied:
Detailed Validation
Please share any and all of your validation steps: See Height ticket.
If you had to summarize this PR in an emoji, which would it be?
🍵