File tree Expand file tree Collapse file tree
src/snowflake/snowpark/modin/plugin
tests/integ/modin/hybrid/auto_switch_backend Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import inspect
66import sys
77from typing import Union , Callable , Any
8- import warnings
98
109from packaging import version
1110
174173)
175174from 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:\n from modin.config import AutoSwitchBackend; AutoSwitchBackend.disable()"
181- )
182-
183- warnings .filterwarnings ("once" , message = HYBRID_WARNING )
184176
185177if 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
Original file line number Diff line number Diff line change 44
55
66def 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
You can’t perform that action at this time.
0 commit comments