-
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-2811] [Bug] When adding data_type
to a model yml
, there is an error KeyError: 'data_type'
#8063
Comments
data_type
to a model yml
, there is an error KeyError: 'data_type'
data_type
to a model yml
, there is an error KeyError: 'data_type'
Thanks for opening this @jan-benisek ! All columns will need to have - name: tool
description: tool name
data_type: varchar(20) That should solve the particular issue you are running into. As a follow-up, dbt should raise a better error message when a |
Hi @dbeatty10 , should have thought of that, adding |
You are welcome @jan-benisek! We opened #8070 to raise a better error message in the future. |
Is this a new bug in dbt-core?
Current Behavior
I am trying to use
contracts
in dbt and therefore addingdata_type
, however I am gettingKeyError: 'data_type'
Expected Behavior
The above should work, just like described in your documentation.
Steps To Reproduce
I have a simple model
my_model.sql
:This model has a description in
yml
file:When I run
dbt run -s my_model
I get an error (see below)Relevant log output
In the
dbt.log
, I can see this:Environment
Which database adapter are you using with dbt?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: