-
Notifications
You must be signed in to change notification settings - Fork 288
Conversation
@dlawin Under what scenario would a user set
Does it make sense to set this to default |
I like that, maybe having the variable be |
Me gusta. That way users don't have to think about whether their project uses custom schemas or not, data-diff --dbt will just work |
Updated the description |
As a rule of thumb - I think we should stay away from asserting on a negative (it can be confusing). Disable = True is asserting on a negative. @dlawin Can we reformat to |
fixed, I overthought what kyle suggested lol |
Resolves #404
Adds support for custom schemas, with a new data_diff var
Example (custom schema environments):
No need to do anything here, custom_schemas is assumed to be True
prod path =
<prod_database>.<prod_schema>_<custom_schema>.<model>
if the model has a custom schema.else:
prod path =
<prod_database>.<prod_schema>.<model>
Setting
custom_schemas: False
would cause the prod comparison path to be<prod_database>.<prod_schema>.<model>
or<prod_database>.<same_schema_as_dev_model>.<model>
based on the existence of theprod_schema
variable (existing behavior).Example (schema environments):
prod path =
<prod_database>.<prod_schema>.<model>
Example (database environments):
prod path =
<prod_database>.<same_schema_as_dev_model>.<model>