- Notifications
You must be signed in to change notification settings - Fork1.6k
BigQuery: Include SQL query and job ID in job errors#8748
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
plamut commentedJul 24, 2019
Again, one of the unit tests will fail (converting special float to arrow), but it is not related to this PR. |
tseaver commentedJul 25, 2019
Looks like we might need to pin one of the dependencies (pyarrow?) to fix our tests. |
tswast left a comment
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.
Nice job with the rulers. I like it! One nit-pick re: header for the SQL.
Uh oh!
There was an error while loading.Please reload this page.
The code for query format in exception messages is a modified versionof the original proposal by@bencaine1 in the feature request:googleapis#5408 (comment)
All GoogleAPICallError (GoogleCloudError) instances have the "message"attribute, even in Python 3, thus the additional info can be appendeddirectly to that attribute.
It's not always the query that causes the error, thus this commitmakes the header text more neutral.
Uh oh!
There was an error while loading.Please reload this page.
Closes#5408.
As per user request, this PR adds additional info to any errors that might happen when calling
job.result().How to test
Actual result (before the fix):
The error output only contains the exception traceback.
Actual result (after the fix):
The error output containsall of the following: exception traceback, job ID, the SQL query itself with lines enumerated. The type of the exception with the modified message is the same as the original exception type.