-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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-3141] [Regression] 'BaseResult' object has no attribute 'node' #8689
Comments
@katarinagacnik Thanks for opening! From the information you've provided, it looks like two things are going on. Since upgrading, the error being raised in the The actual error you're seeing ( Otherwise, I'm inclined to close this as a duplicate of the issues I linked above. I agree that we should try to restore this behavior, to enable this sort of "pre-flight" check via an |
Hi @jtcohen6, thank you for responsing to my issue! Maybe my output is not very descriptive - sorry about that. But by your answer I see you got the problem I am dealing with. Macro in the prehook was doing some process validation (checking if the previous run is still running or if it ended with an error) and in a case of a problem immediately stopped the run therefore making sure that concurrent runs (even from different users) were not possible. Now since this behavior changed, we lost the ability to forcefully end the run. Thanks in advance! |
@katarinagacnik thanks for that info! Based on that, I'm going to close this as a duplicate of #7387, and I copied your last two questions over to the comment threads there. Just let me know if you think this issue is unique from #7387 and we can consider re-opening this. |
Is this a regression in a recent version of dbt-core?
Current Behavior
Hi,
I recently upgraded to dbt core 1.5.3 and dbt snowflake 1.5.2 and I started receiving a python error using exceptions.raise_compile_error in a on-run-start hook macro. Everything was working fine before the upgrade (using 1.3.1 version).
I found another issue #6796 written on this topic in January this year and at that time it was said that the bug will be fixed with the new 1.4.x version. However the same bug is still present in the newer versions of dbt.
Expected/Previous 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 sf).
In dbt_project:
Relevant log output
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: