Skip to content

Commit 709f68a

Browse files
sfc-gh-joshisfc-gh-yuwang
authored andcommitted
RELEASE ONLY disable hybrid mode
1 parent 52f1612 commit 709f68a

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373

7474
#### Improvements
7575

76-
- 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.
7776
- Downgraded to level `logging.DEBUG - 1` the log message saying that the
7877
Snowpark `DataFrame` reference of an internal `DataFrameReference` object
7978
has changed.

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)