-
Notifications
You must be signed in to change notification settings - Fork 117
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
Alter closing sessions inside a stored procedure to write a warning instead of throwing an error #1263
Conversation
- this should fail once closing sessions in stored procedures is a noop
- instead of throwing an error a warning is written when closing a session inside a stored procedure
…e a stored procedure - skip should not be needed anymore due to the closing of a session being a no-op when inside a stored procedure
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
- test cannot be run because creating a session in stored procedures is not allowed
Thanks for the review! |
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.
Overall change looks good. just one last comment to remove the skip. I'll run tests from my end to verify that removing the skip passes all tests
- closing session in stored procedure should not close session
I fixed the failing test. The integration test was stilling testing for the old behavior. |
- not used anymore
closing behavior in stored procedures
responding a little late on this thread because was discussing with the team about the result of internal tests we ran earlier
All tests passed except for one which is testing log messages received during the life-cycle of a stored proc. We see extra log lines in that test due to I made these changes myself here and made sure that all tests have passed. |
Thanks for the input. |
There was a recent change on the server side. can you rebase and pull latest changes from main and the tests will pass. |
The branch is now up to date with the main. |
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-1062439: Automatically closing sessions and connections using Python
with
leads to errors when deploying to stored procedures #1259Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Instead of throwing an error message when attempting to close a session a warning is written informing that closing a session inside a stored procedure is a no-op.
Afterwards the functionality to close sessions is ignored by returning from the function directly after writing a warning.