Skip to content

Commit 5575562

Browse files
authored
Changed not to use scoped temp stage (#2158)
1 parent 51bd484 commit 5575562

File tree

8 files changed

+14
-5
lines changed

8 files changed

+14
-5
lines changed

DESCRIPTION.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ https://docs.snowflake.com/
77
Source code is also available at: https://github.com/snowflakedb/snowflake-connector-python
88

99
# Release Notes
10+
- v3.13.2(January 29, 2025)
11+
- Changed not to use scoped temporary objects.
1012

1113
- v3.13.1(January 29, 2025)
1214
- Remedied SQL injection vulnerability in snowflake.connector.pandas_tools.write_pandas. See more https://github.com/snowflakedb/snowflake-connector-python/security/advisories/GHSA-2vpq-fh52-j3wv

src/snowflake/connector/pandas_tools.py

+6
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,12 @@ def write_pandas(
321321
else False
322322
)
323323

324+
"""sfc-gh-yixie: scoped temp stage isn't required out side of a SP.
325+
TODO: remove the following line when merging SP connector and Python Connector.
326+
Make sure `create scoped temp stage` is supported when it's not run in a SP.
327+
"""
328+
_use_scoped_temp_object = False
329+
324330
if create_temp_table:
325331
warnings.warn(
326332
"create_temp_table is deprecated, we still respect this parameter when it is True but "

src/snowflake/connector/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Update this for the versions
22
# Don't change the forth version number from None
3-
VERSION = (3, 13, 1, None)
3+
VERSION = (3, 13, 2, None)

test/integ/pandas/test_pandas_tools.py

+1
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ def mocked_execute(*args, **kwargs):
607607
)
608608

609609

610+
@pytest.mark.skip("scoped object isn't used yet.")
610611
@pytest.mark.parametrize(
611612
"database,schema,quote_identifiers,expected_db_schema",
612613
[

tested_requirements/requirements_310.reqs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ sortedcontainers==2.4.0
1717
tomlkit==0.13.2
1818
typing_extensions==4.12.2
1919
urllib3==2.3.0
20-
snowflake-connector-python==3.13.1
20+
snowflake-connector-python==3.13.2

tested_requirements/requirements_311.reqs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ sortedcontainers==2.4.0
1717
tomlkit==0.13.2
1818
typing_extensions==4.12.2
1919
urllib3==2.3.0
20-
snowflake-connector-python==3.13.1
20+
snowflake-connector-python==3.13.2

tested_requirements/requirements_312.reqs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ tomlkit==0.13.2
1919
typing_extensions==4.12.2
2020
urllib3==2.3.0
2121
wheel==0.45.1
22-
snowflake-connector-python==3.13.1
22+
snowflake-connector-python==3.13.2

tested_requirements/requirements_39.reqs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ sortedcontainers==2.4.0
1717
tomlkit==0.13.2
1818
typing_extensions==4.12.2
1919
urllib3==1.26.20
20-
snowflake-connector-python==3.13.1
20+
snowflake-connector-python==3.13.2

0 commit comments

Comments
 (0)