Skip to content

Commit 310c287

Browse files
committed
RELEASE ONLY disable hybrid mode
1 parent bcb81a9 commit 310c287

2 files changed

Lines changed: 3 additions & 14 deletions

File tree

src/snowflake/snowpark/modin/plugin/__init__.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import inspect
66
import sys
77
from typing import Union, Callable, Any
8-
import warnings
98

109
from packaging import version
1110

@@ -174,19 +173,9 @@
174173
)
175174
from modin.config import AutoSwitchBackend # isort: skip # noqa: E402
176175

177-
HYBRID_WARNING = (
178-
"Snowpark pandas now runs with hybrid execution enabled by default, and will perform certain operations "
179-
+ "on smaller data using local, in-memory pandas. To disable this behavior and force all computations to occur in "
180-
+ "Snowflake, run this line:\nfrom modin.config import AutoSwitchBackend; AutoSwitchBackend.disable()"
181-
)
182-
183-
warnings.filterwarnings("once", message=HYBRID_WARNING)
184176

185177
if AutoSwitchBackend.get_value_source() is ValueSource.DEFAULT:
186-
AutoSwitchBackend.enable()
187-
188-
if AutoSwitchBackend.get():
189-
warnings.warn(HYBRID_WARNING, stacklevel=1)
178+
AutoSwitchBackend.disable()
190179

191180
# Hybrid Mode Registration
192181
# In hybrid execution mode, the client will automatically switch backends when a

tests/integ/modin/hybrid/auto_switch_backend/test_plugin_default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55

66
def test_importing_plugin_always_turns_on_auto_switch_backend():
7-
"""Test that importing snowflake.snowpark.modin.plugin always turns AutoSwitchBackend."""
7+
"""Test that importing snowflake.snowpark.modin.plugin always turns AutoSwitchBackend off."""
88

99
from modin.config import AutoSwitchBackend
1010

1111
import snowflake.snowpark.modin.plugin # noqa: F401
1212

13-
assert AutoSwitchBackend.get() is True
13+
assert AutoSwitchBackend.get() is False

0 commit comments

Comments
 (0)