-
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-2737] [Bug] A misleading error message when contracts enabled but not implemented yet #7943
Comments
Okay, I found the problem. Occurs when contracts are enabled but there is no entry in So the real issue becomes a misleading error message instead. dbt should warn that the contract for the model is not implemented instead of throwing a SyntaxError |
Thanks for reporting this @miloszbednarzak ! @jtcohen6 may provide additional commentary, but in the meantime, here are two different ways to reproduce what you reported:
|
Thanks @dbeatty10! Agree we should raise a nicer error message here. We just need to add a check to ensure that dbt-core/core/dbt/include/global_project/macros/materializations/models/table/columns_spec_ddl.sql Lines 38 to 39 in 7fbfd53
Took it for a quick spin: |
Is this a new bug in dbt-bigquery?
Current Behavior
[edit] see #7943
When
dbt run -s [model]
the query run in BigQuery is cut out resulting with an SyntaxError.When examine GBQ run history, it's clear that the query that should be run is entirely cut out. dbt logs shows the same.
Expected Behavior
Query should be equivalent with the compiled model.
Steps To Reproduce
model name:
test.sql
with file content:
run
dbt run -s test
Relevant log output
Environment
Additional Context
this behaviour is present both in dbt cloud and when run locally.
The text was updated successfully, but these errors were encountered: