From 8e85799cd08476db7b83bcd16cc87ce6d9cd20c4 Mon Sep 17 00:00:00 2001 From: Jonathan Shi Date: Tue, 16 Sep 2025 09:57:04 -0700 Subject: [PATCH 1/2] RELEASE ONLY disable hybrid mode --- src/snowflake/snowpark/modin/plugin/__init__.py | 13 +------------ .../auto_switch_backend/test_plugin_default.py | 4 ++-- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/snowflake/snowpark/modin/plugin/__init__.py b/src/snowflake/snowpark/modin/plugin/__init__.py index a27094dd9e..40e18fe110 100644 --- a/src/snowflake/snowpark/modin/plugin/__init__.py +++ b/src/snowflake/snowpark/modin/plugin/__init__.py @@ -5,7 +5,6 @@ import inspect import sys from typing import Union, Callable, Any -import warnings from packaging import version @@ -174,19 +173,9 @@ ) from modin.config import AutoSwitchBackend # isort: skip # noqa: E402 -HYBRID_WARNING = ( - "Snowpark pandas now runs with hybrid execution enabled by default, and will perform certain operations " - + "on smaller data using local, in-memory pandas. To disable this behavior and force all computations to occur in " - + "Snowflake, run this line:\nfrom modin.config import AutoSwitchBackend; AutoSwitchBackend.disable()" -) - -warnings.filterwarnings("once", message=HYBRID_WARNING) if AutoSwitchBackend.get_value_source() is ValueSource.DEFAULT: - AutoSwitchBackend.enable() - -if AutoSwitchBackend.get(): - warnings.warn(HYBRID_WARNING, stacklevel=1) + AutoSwitchBackend.disable() # Hybrid Mode Registration # In hybrid execution mode, the client will automatically switch backends when a diff --git a/tests/integ/modin/hybrid/auto_switch_backend/test_plugin_default.py b/tests/integ/modin/hybrid/auto_switch_backend/test_plugin_default.py index 38cb0ef304..0dab6607db 100644 --- a/tests/integ/modin/hybrid/auto_switch_backend/test_plugin_default.py +++ b/tests/integ/modin/hybrid/auto_switch_backend/test_plugin_default.py @@ -4,10 +4,10 @@ def test_importing_plugin_always_turns_on_auto_switch_backend(): - """Test that importing snowflake.snowpark.modin.plugin always turns AutoSwitchBackend.""" + """Test that importing snowflake.snowpark.modin.plugin always turns AutoSwitchBackend off.""" from modin.config import AutoSwitchBackend import snowflake.snowpark.modin.plugin # noqa: F401 - assert AutoSwitchBackend.get() is True + assert AutoSwitchBackend.get() is False From 16f0124bad75048fd0e1186b6cbbe9dabd2a7b74 Mon Sep 17 00:00:00 2001 From: Jonathan Shi Date: Tue, 30 Sep 2025 10:03:00 -0700 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2db864573..898b16b86c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -122,7 +122,6 @@ #### Improvements -- Hybrid execution mode is now enabled by default. Certain operations on smaller data will now automatically execute in native pandas in-memory. Use `from modin.config import AutoSwitchBackend; AutoSwitchBackend.disable()` to turn this off and force all execution to occur in Snowflake. - Added a session parameter `pandas_hybrid_execution_enabled` to enable/disable hybrid execution as an alternative to using `AutoSwitchBackend`. - Removed an unnecessary `SHOW OBJECTS` query issued from `read_snowflake` under certain conditions. - When hybrid execution is enabled, `pd.merge`, `pd.concat`, `DataFrame.merge`, and `DataFrame.join` may now move arguments to backends other than those among the function arguments.