Skip to content

Commit c0060a0

Browse files
authored
NO-SNOW: fix test failure in sproc (#3928)
1 parent b6b39b9 commit c0060a0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
- Fixed a bug where writing Snowpark pandas dataframes on the pandas backend with a column multiindex to Snowflake with `to_snowflake` would raise `KeyError`.
6868
- Fixed a bug that `DataFrameReader.dbapi` (PuPr) is not compatible with oracledb 3.4.0.
6969
- Fixed a bug where `modin` would unintentionally be imported during session initialization in some scenarios.
70+
- Fixed a bug where `session.udf|udtf|udaf|sproc.register` failed when an extra session argument was passed. These methods do not expect a session argument; please remove it if provided.
7071

7172
#### Improvements
7273

tests/integ/test_pandas_to_df.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,11 @@ def test_create_from_pandas_basic_pandas_types(session):
667667
assert isinstance(sp_df, Table)
668668
# If max string size is not 16mb then it shows up in the schema definition
669669
max_size = "" if session._conn.max_string_size == 2**24 else "16777216"
670+
# TL;DR: max_string_size is not reliable in stored procedure due to SNOW-2055478
671+
# in snowflake 2025_07 BCR bundle, the default string length becomes 128MB, however, SNOW-2055478 currently
672+
# blocks us from using it.
673+
if is_in_stored_procedure():
674+
max_size = "134217728"
670675
assert (
671676
str(sp_df.schema)
672677
== f"""\

0 commit comments

Comments
 (0)