-
Notifications
You must be signed in to change notification settings - Fork 116
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-1418523: make udf and sproc registration thread safe #2289
SNOW-1418523: make udf and sproc registration thread safe #2289
Conversation
…ection-thread-safe
…ad-safe' into aalam-SNOW-1418523-make-analyzer-server_connection-thread-safe
SNOW-1418523-make-udf-sproc-thread-safe
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
) -> None: | ||
if session is not None and session._runtime_version_from_requirement: |
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 change is to ensure the same value for runtime_version is read from session througout udf/sp registration process.
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
…ad-safe' into aalam-SNOW-1418523-make-analyzer-server_connection-thread-safe
fde612e
to
df3263c
Compare
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
…ad-safe' into aalam-SNOW-1418523-make-udf-sproc-thread-safe
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
42d6e19
into
aalam-SNOW-1418523-make-internal-session-variables-thread-safe
Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-1663723
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
This PR makes UDF/Sproc related update to make calling, invoking, and registering UDXFs and sprocs thread-safe. Along with these changes, adding packages and imports is also made thread-safe in this PR. The change involves
Session._packages
andSession._import_paths
_runtime_version_from_requirement
once and use the value throughout the registration process.