-
Notifications
You must be signed in to change notification settings - Fork 60
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
[ADAP-377] [CT-2308] [Bug] 1.5.0-b3 has funky error logging #373
Comments
Thanks for flagging @joellabes! I think this is due to our switch to using |
While troubleshooting #365, I found that |
Lined up to the next sprint |
Hi team, I've got a fix for the first bug. 🎉 However, Mike's point stands in the unfortunate way. There is no easy field -- judging both from my experiences and looking over redshift documentation -- to replicate the old behavior in the cursor object that redshift provides. One thing we can do is Jerry rig a success message, but not necessarily a count of rows affected. Here are some paths forward for now:
In the meantime, I'm going to look more in core that might be causing this bug that I'm overlooking, just in case. |
I'm feeling number 1 for 1.5 to be honest... |
1 makes sense given additional research I did into the library and comparing against core. What's nice is that the offending function is only used as far as I can tell when PR is updated to illustrate more of what I'm talking about |
Is this a new bug in dbt-core?
Current Behavior
While looking at the debug logs for a dbt utils CI job, I noticed that there's some funky things happening in the logs.
1. Entire JSON object being dumped for database errors:
Observed:
Expected:
2. Wrong output for successful model builds on Redshift
Observed:
Expected:
I don't remember offhand, but it sure isn't
cursor.rowcount = -1
! Isn't it meant to be something likeSUCCESS 1
for views andSUCCESS [impacted row count]
for tables?Expected Behavior
Noted above
Steps To Reproduce
Check out this pipeline for the specific logs https://app.circleci.com/pipelines/github/dbt-labs/dbt-utils/1474/workflows/3b5f8db1-2663-4366-8c53-8a2e7cfb2899/jobs/4810
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: