-
Notifications
You must be signed in to change notification settings - Fork 118
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
SNOW-956848 Store underlying error in SnowparkSQLException #1122
Conversation
2268924
to
c772e7c
Compare
f"DataFrame alias unrecognized. A subset of columns corresponding to Dataframe alias '{alias}' can not be found. " | ||
"1208", | ||
f"DataFrame alias unrecognized. A subset of columns corresponding to Dataframe alias '{alias}' can not be found. ", | ||
error_code="1208", |
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.
😱 This almost makes me wish Python didn't allow implicit string concatenation
c772e7c
to
10fd7cd
Compare
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.
LGTM, this looks much cleaner, thanks for the changes!
Adding @sfc-gh-aling as a reviewer since I'm not a code owner. It looks like the two of us had the same idea :) |
10fd7cd
to
b07de12
Compare
@sfc-gh-yixie @sfc-gh-sfan can one of you merge? |
There is a CLA bot thingy that I'll check with the team and see what to do about it. |
@sfc-gh-sfan any updates on this? |
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.
Outside of changelog, other changes look good to me
b07de12
to
28b9541
Compare
28b9541
to
67c4c01
Compare
@sfc-gh-aalin @sfc-gh-sfan Can one of you merge? I don't have write access |
Alas, neither do I |
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
https://snowflakecomputing.atlassian.net/browse/SNOW-956848
This is mostly addressed by SNOW-947875 Add sql_error_code and raw_message into SnowparkSQLException #1111, but I think this is a better long-term solution, for the user to have access to any information in the underlying error.
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.