-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
sql_lab: re-raise exception in get_sql_results #3111
Conversation
eabd057
to
4f3c658
Compare
Coverage decreased (-0.01%) to 69.259% when pulling 4f3c658e3662bf798866c4a10d83407ca0e56153 on xrmx:reraisesqllabgetresults into d7e4191 on apache:master. |
@mistercrunch could you please merge this? We have two open bugs and one closed that are affected by this. |
4f3c658
to
14867b9
Compare
Coverage decreased (-0.09%) to 69.295% when pulling 14867b9574dc9e3c933a68e0028ef45de61dc91d on xrmx:reraisesqllabgetresults into 6045063 on apache:master. |
As caller expect it to raise an exception instead of returning None. Refs apache#3075
14867b9
to
f4250b4
Compare
3 similar comments
@@ -98,6 +98,7 @@ def get_sql_results( | |||
query.status = QueryStatus.FAILED | |||
query.tmp_table_name = None | |||
sesh.commit() | |||
raise |
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 think this should be raise e
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.
If it's not passed to raise it's the one in the scope. I've verified it with both python3 and python2.
As caller expect it to raise an exception instead of returning
None. Haven't run this but tests pass.
Refs #3075