Repository navigation
fix: Bump decommissioned Snowflake Python UDF runtime from 3.9 to 3.10 (#6606) #6608
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
Merged
ntkathole
merged 4 commits into
feast-dev:master
from
zerafachris:fix/snowflake-udf-decommissioned-runtime-version
Jul 19, 2026
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c264a53
fix: Bump decommissioned Snowflake Python UDF runtime from 3.9 to 3.1…
zerafachris a327346
feat: Make Snowflake Python UDF runtime version user-configurable
zerafachris 21cb098
fix: Redeploy Snowflake UDFs on every apply so runtime version change…
zerafachris 0a3db47
Merge branch 'master' into fix/snowflake-udf-decommissioned-runtime-v…
zerafachris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: Make Snowflake Python UDF runtime version user-configurable
Addresses maintainer feedback from @ntkathole on #6608 ("is it possible to make it user configurable?") following the RUNTIME_VERSION 3.9 -> 3.10 bump for decommissioned Snowflake Python UDF runtimes (#6606). Adds `python_udf_runtime_version` (default "3.10") to SnowflakeComputeEngineConfig, validated as a Python version string, and plumbs it through SnowflakeComputeEngine.update() via a new RUNTIME_VERSION_HOLDER placeholder in snowflake_python_udfs_creation.sql, following the same substitution pattern already used for STAGE_HOLDER and PROJECT_NAME. This way, the next time Snowflake decommissions a Python runtime, users can override the config instead of waiting on a Feast release with another hardcoded bump. Also updates snowflake_udfs.py with a note clarifying its RUNTIME_VERSION docstrings are static reference documentation of the default (not the templated value actually deployed), documents the new field in docs/reference/compute-engine/snowflake.md, and adds/updates tests covering the config default, custom override, validation, and the rendered SQL template. Signed-off-by: zerafachris <christopher.zerafa@blocklabs.io>
- Loading branch information
commit a327346b876c4fdaeab05c0e5f14a4f99817f72c
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
sdk/python/feast/infra/utils/snowflake/snowpark/snowflake_python_udfs_creation.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,127 +1,127 @@ | ||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_binary_to_bytes_proto(df BINARY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_binary_to_bytes_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_varchar_to_string_proto(df VARCHAR) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_varchar_to_string_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_array_bytes_to_list_bytes_proto(df ARRAY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_array_bytes_to_list_bytes_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_array_varchar_to_list_string_proto(df ARRAY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_array_varchar_to_list_string_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_array_number_to_list_int32_proto(df ARRAY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_array_number_to_list_int32_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_array_number_to_list_int64_proto(df ARRAY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_array_number_to_list_int64_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_array_float_to_list_double_proto(df ARRAY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_array_float_to_list_double_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_array_boolean_to_list_bool_proto(df ARRAY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_array_boolean_to_list_bool_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_array_timestamp_to_list_unix_timestamp_proto(df ARRAY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_array_timestamp_to_list_unix_timestamp_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_number_to_int32_proto(df NUMBER) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_number_to_int32_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_number_to_int64_proto(df NUMBER) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_number_to_int64_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_float_to_double_proto(df DOUBLE) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_float_to_double_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_boolean_to_bool_proto(df BOOLEAN) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_boolean_to_bool_boolean_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_snowflake_timestamp_to_unix_timestamp_proto(df NUMBER) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_timestamp_to_unix_timestamp_proto' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_serialize_entity_keys(names ARRAY, data ARRAY, types ARRAY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_serialize_entity_keys' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip'); | ||
|
|
||
| CREATE FUNCTION IF NOT EXISTS feast_PROJECT_NAME_entity_key_proto_to_string(names ARRAY, data ARRAY, types ARRAY) | ||
| RETURNS BINARY | ||
| LANGUAGE PYTHON | ||
| RUNTIME_VERSION = '3.10' | ||
| RUNTIME_VERSION = 'RUNTIME_VERSION_HOLDER' | ||
| PACKAGES = ('protobuf', 'pandas') | ||
| HANDLER = 'feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_entity_key_proto_to_string' | ||
| IMPORTS = ('@STAGE_HOLDER/feast.zip') | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.