-
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-1977] [Regression] 'BaseResult' object has no attribute 'node'
#6796
Comments
Thanks for opening @fradeleo! Lame fix: Change database_schema_set: Set[Tuple[Optional[str], str]] = {
(r.node.database, r.node.schema)
for r in results
if (hasattr(r, "node") and r.node.is_relational)
and r.status not in (NodeStatus.Error, NodeStatus.Fail, NodeStatus.Skipped)
} Better fix: Figure out what we changed in v1.4 that actually causes this hook result to pass through |
raise_compiler_error
in hook -> 'BaseResult' object has no attribute 'node'
We got the same issue and reverted our upgrades of dbt-core 1.4.1 and dbt-bigquery 1.4.0 since we found it hard to retrace what was causing the issue to be triggered.. |
@emmyoop will this be solved in the next release of dbt-core? |
@christopherekfeldt We've backported the fix to |
Thanks guys! Keep up the amazing work. We love dbt |
@christopherekfeldt thanks for reporting the regression with such a great reproduction case! Always makes it easier to figure out what's happening. |
raise_compiler_error
in hook -> 'BaseResult' object has no attribute 'node'
'BaseResult' object has no attribute 'node'
Is this a new bug in dbt-core?
Current Behavior
Hi,
I recently upgraded to dbt core 1.4.1 and dbt bigquery 1.4.0 and I've started receiving a python error using exceptions.raise_compile_error in a on-run-start hook macro. Everything was working fine before the upgrade.
Macro and logs attached below.
I tried to substitute the exceptions.raise_compile_error with a log() message just to check if it was indeed the exception causing the issue, and I didn't bump into any errors.
Expected Behavior
This setup worked before. If a single row was returned by the query, an error would be raised and dbt run would not start at all.
Steps To Reproduce
In macros folder, create an export_table_check.sql file with the following content (change table name and column name based on your own table in bigq).
In dbt_project:
Relevant log output
Environment
Which database adapter are you using with dbt?
bigquery
Additional Context
No response
The text was updated successfully, but these errors were encountered: