GitHub
11/30/2024, 12:35 AMraw_db
|- raw_salesforce
|- account
|- opportunity
|- user
After adding version numbers (starting with "2" to avoid confusion), the target schema after updating versions and rerunning the pipeline might look like:
raw_db
|- raw_salesforce
|- account (prev version)
|- account__v2 (new version)
|- opportunity (prev version)
|- opportunity__v2 (new version)
|- user (prev version)
|- user__v2 (new version)
Assuming this is consumed by a tool like dbt, the downstream transforms now automatically can union the data together and migrate safely to the new version. Optionally, an administrator can later drop the older table versions for data sensitivity reasons or just to reduce confusion.
Proposal
In outline:
• Meltano would add a 'major version number' which can be incremented per table. The version number would be (optionally) configured per-table in meltano.yml. A command line interface could auto-bump the version number on a specific table, or on all tables in a given source.
• The version number (if set) would be automatically concatenated as a suffix in the target table name, and it could also be concatenated into the state file path.
• By optionally and simultaneously changing the state file path (or the bookmark within the state file), we can simultaneously break the connection to the prior version's bookmark - which then triggers a full table reload on next execution.
What does success look like, and how can we measure that?
If usage statistics are available, a metric of feature usage would be a good indicator of whether the feature is valuable to meltano users. Otherwise, it would be measurable in increased adoption of the tool and/or higher product satisfaction metrics on topics such as maintainability.
Regression test
(Ensure the feature doesn't cause any regressions)
• Write adequate test cases and submit test results
• Test results should be reviewed by a person from the team
Links / references
Please note that this was taken from GitLab, to be changed accordingly
meltano/meltanoGitHub
11/30/2024, 12:35 AM