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
fix: External table models with missing fields now produce an error #47
Conversation
…ome logic to error out with missing column names.
… only drop and rebuild if explicity told to using a variable on dbt run-operation stage_external_sources.
hey @ericf-firebolt
Shouldn't it skip in this case?
|
@octavianzarzu30, I'm unable to recreate your issues. Are you sure you're running the most current version of the branch? As to the first question though, where you run That warning message comes from dbt and is output when the |
Yep - pip3 install git+https://github.com/firebolt-db/dbt-firebolt.git@external-table-edits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
dbt/adapters/firebolt/impl.py
Outdated
+ "')" | ||
) | ||
# Todo: See if name is a required field. | ||
if 'name' in partition and partition['name'] is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same nit here. Validate first and then do what is needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get an internal error
(.venv) ~/code/jaffle_shop_firebolt [main|…1]$ dbt run-operation stage_external_sources
12:11:04 Running with dbt=1.0.3
12:11:04 1 of 1 START external source s3.raw_customers
12:11:09 1 of 1 (1) DROP TABLE IF EXISTS raw_customers
12:13:20 Encountered an error while running operation: Runtime Error
Runtime Error
Error executing query:
Query failed - Internal execution error
SonarCloud Quality Gate failed. |
Description
Previously, external table models with missing or misspelled
regex
ordata_type
fields caused indecipherable errors. Those errors are now clear. In addition, drop/create on external tables only occurs if variable is set:dbt run-operation stage_external_sources --vars "ext_full_refresh: true"
. Otherwise, table is skipped.Fixes
dbt seeds doesn't truncate tables before running
Checklist
CHANGELOG.md
and added information about my change.