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

Deprecation/remove basic transformation tables #96

Conversation

fivetran-jamie
Copy link
Contributor

@fivetran-jamie fivetran-jamie commented Nov 6, 2023

PR Overview

This PR will address the following Issue/Feature:
#93

This PR will result in the following new package version:

1.3.0 as this is very breaking for the 2 customers still using basic SQL transformations (and anyone looking at the stale tables for historical analyses)

Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:

This PR removes the transformation and trigger_table sources, staging models, variables, documentation, and downstream transforms (essentially the entire fivetran_platform__transformation_status end model)

It does NOT remove transformation_id and transformation-oriented logic from the staing log model. I chose not to remove this for 2 reasons:

  1. the log table is historical, so if someone had basic SQL transformations in the past they will have transformation records in LOG. We should continue to correctly label these
  2. i believe the product team intends to rollout a new dbt-transformation version of the transformation and trigger_table tables next year, so log.transformation_id could become relevant again (and isn't causing trouble)

PR Checklist

Basic Validation

Please acknowledge that you have successfully performed the following commands locally:

  • dbt compile
  • dbt run –full-refresh
  • dbt run
  • dbt test -- getting a uniqueness failure in the audit_table on incremental runs... that's unrelated (on main 😓) but looking into it....
  • dbt run –vars (if applicable)

Before marking this PR as "ready for review" the following have been applied:

  • The appropriate issue has been linked and tagged
  • You are assigned to the corresponding issue and this PR
  • BuildKite integration tests are passing

Detailed Validation

Please acknowledge that the following validation checks have been performed prior to marking this PR as "ready for review":

  • You have validated these changes and assure this PR will address the respective Issue/Feature.
  • You are reasonably confident these changes will not impact any other components of this package or any dependent packages.
  • You have provided details below around the validation steps performed to gain confidence in these changes.

See the Hex notebook (in height ticket) for my sanity check validations, but truthfully the validation for this task is largely non-sql. Transformations and triggers were only involved in the now-deprecated transformation_status end model. No other end models depend on these sources.

So outside of SQL and into the CLI...

On main, if you do not have fivetran_platform_using_transformations and fivetran_platform_using_triggers set to False and you don't have the transformation and trigger_table, a dbt run would result in
image

One must set these variables to False explicitly (they are true by default) for a successful run
image

image

Thus, this PR makes so it that we achieve the above image without having users (who almost certainly don't have these tables and/or don't want to transform stale data) set any variables.

So if i comment these back out
image

And dbt run, everything works out
image

Standard Updates

Please acknowledge that your PR contains the following standard updates:

  • Package versioning has been appropriately indexed in the following locations:
    • indexed within dbt_project.yml
    • indexed within integration_tests/dbt_project.yml
  • CHANGELOG has individual entries for each respective change in this PR
  • README updates have been applied (if applicable)
  • DECISIONLOG updates have been updated (if applicable)
  • Appropriate yml documentation has been added (if applicable)

dbt Docs

Please acknowledge that after the above were all completed the below were applied to your branch:

  • docs were regenerated (unless this PR does not include any code or yml updates) -- waiting to do so on release branch

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

🥶

@fivetran-jamie fivetran-jamie self-assigned this Nov 8, 2023
@fivetran-jamie fivetran-jamie marked this pull request as ready for review November 8, 2023 00:23
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.

LGTM with just a few minor comments to add a bit more to the CHANGELOG

@fivetran-jamie fivetran-jamie merged commit eb445e7 into releases/v1.3.latest Nov 14, 2023
@fivetran-jamie fivetran-jamie mentioned this pull request Nov 14, 2023
18 tasks
@fivetran-jamie fivetran-jamie deleted the deprecation/remove-basic-transformation-tables branch November 14, 2023 20:42
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