Skip to content

Commit cecabe2

Browse files
committed
SNOW-2173685 respect existing param control of using SCOPED keyword for sproc
1 parent 08dbaa8 commit cecabe2

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/snowflake/connector/pandas_tools.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from snowflake.connector.telemetry import TelemetryData, TelemetryField
2323

2424
from ._utils import (
25-
_PYTHON_SNOWPARK_USE_SCOPED_TEMP_OBJECTS_STRING,
2625
TempObjectType,
2726
get_temp_type_for_object,
2827
random_name_for_temp_object,
@@ -354,19 +353,11 @@ def write_pandas(
354353
)
355354

356355
_use_scoped_temp_object = (
357-
conn._session_parameters.get(
358-
_PYTHON_SNOWPARK_USE_SCOPED_TEMP_OBJECTS_STRING, False
359-
)
356+
conn._session_parameters.get("ENABLE_FIX_1375538", False)
360357
if conn._session_parameters
361358
else False
362359
)
363360

364-
"""sfc-gh-yixie: scoped temp stage isn't required out side of a SP.
365-
TODO: remove the following line when merging SP connector and Python Connector.
366-
Make sure `create scoped temp stage` is supported when it's not run in a SP.
367-
"""
368-
_use_scoped_temp_object = False
369-
370361
if create_temp_table:
371362
warnings.warn(
372363
"create_temp_table is deprecated, we still respect this parameter when it is True but "

0 commit comments

Comments
 (0)