fivetran / dbt_fivetran_log

Data models for Fivetran's internal log connector built using dbt.
https://fivetran.github.io/dbt_fivetran_log/
Apache License 2.0
30 stars 24 forks source link

Deprecation/remove basic transformation tables #96

Closed fivetran-jamie closed 9 months ago

fivetran-jamie commented 10 months ago

PR Overview

This PR will address the following Issue/Feature: https://github.com/fivetran/dbt_fivetran_log/issues/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:

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

Detailed Validation

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

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:

dbt Docs

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

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

🥶