-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-3289] [Feature] Common misspellings of Configs Are Silently Ignored - they should raise warnings #8942
Comments
Instead, we could throw a warning anytime you supply a config that we don't actually use. (see original conversation about this) If I have a config that dbt doesn't use:
We should emit a warning like "my_personal_key is not recognized as a dbt config within models/columns" - probs need to wordsmith that ;) We should provide the ability to silence this warning if it is indeed intentional, ideally for that specific instance. Similar in spirit to:
We could suggest what they may have intended to type "did you mean materialized instead of materialied?" if we wanna get fancy with it. |
+1 from me as well. I literally spent hours recently debugging why incrementalisation doesn't work properly on one model, only to find out I typed In the meantime, what's the best practice to guard against such errors? |
dbt_project.yml isn't called out here, but it should be included too I think! cf dbt-labs/dbt-jsonschema#179 |
Is this your first time submitting a feature request?
Describe the feature
Users can pass whatever custom configs they want. There have been issues because of this before...
#5605
#4280
#2606
where folks are trying to add a Real config, but have a small typo that causes it to go undetected:
(og thinking from @peterallenwebb and @jtcohen6)
Acceptance Criteria
We detected a key "<misspelled_key>" did you mean "<correct_spelling>"
Details
We should throw a warning anytime you supply a config that we don't actually use. (see original conversation about this)
If I have a config that dbt doesn't use:
We should emit a warning like "my_personal_key is not recognized as a dbt config within models/columns" - probs need to wordsmith that ;)
We should provide the ability to silence this warning if it is indeed intentional, ideally for that specific instance. Similar in spirit to:
We could suggest what they may have intended to type "did you mean materialized instead of materialied?" if we wanna get fancy with it.
The text was updated successfully, but these errors were encountered: