This repository was archived by the owner on May 17, 2024. It is now read-only.
Get prod alias from --state
manifest file when provided
#646
Labels
--dbt
Issues/features related to the dbt integration
enhancement
New feature or request
stale_immune
Immunity to stale bot
Is your feature request related to a problem? Please describe.
We have an uncommon BigQuery setup where our prod environment consist of multiple GCP projects, but dev is a single project. In this setup the name of the underneath tables for each model is different between the two environments, so currently data-diff doesn't work for us because it tries to use the same model alias in both environments.
Describe the solution you'd like
When providing a prod manifest via the
--state
, take the alias for prod from the manifest instead of using the same one from therun_results
file. This should be fairly easy to implement and would allow us to use data-diff :)Describe alternatives you've considered
With my very limited familiarity with the code, I don't see any other alternative to be honest.
Migrating to a single project setup is not an option for us as it would require a huge effort.
Additional context
I'm happy to submit a PR if help is needed, as I have a working version of this already.
The text was updated successfully, but these errors were encountered: