-
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-2814] [Feature] Better error message when a column in a contracted model is missing a data_type
#8070
Comments
data_type
data_type
We should be able to raise the existing Some related work: 746ca7d |
data_type
data_type
IIRC, we're not able to do this during parsing because it's possible that we're patching node properties ( So this change makes sense to me:
|
I believe this was done and released in 1.6 as part of commit 814eb65. Do we want to raise the error in another way? |
@emmyoop You're right!! Using the repro case from #8063:
I think this one can be closed :) |
Hi @jtcohen6, I find this post when we try to implement the contract configs for our models.
We are using redshift and dbt1.6. I would prefer to see messages like below.
|
Is this your first time submitting a feature request?
Describe the feature
We didn't provide a helpful error message here which made it hard for the user to see what was going on:
We should provide a better error message. Maybe some like this:
Of course replace X and Y with the actual model / column names! 😎
The relevant area of code is somewhere around here:
dbt-core/core/dbt/adapters/base/impl.py
Line 1350 in d8f38ca
Describe alternatives you've considered
We could leave it as-is, but that wouldn't be the best 😢
Who will this benefit?
All of us that miss tiny little things and just need helpful direction of how to fix it.
Are you interested in contributing this feature?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: