Skip to content

Commit f0e1179

Browse files
authored
SNOW-2430412: Remove experimental warning of cte_optimization_enabled (#3993)
1 parent e37af77 commit f0e1179

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
- Enhanced `DataFrame.sort()` to support `ORDER BY ALL` when no columns are specified.
4949
- Catalog API now uses SQL commands instead of SnowAPI calls. This new implementation is more reliable now.
50+
- Removed experimental warning from `Session.cte_optimization_enabled`.
5051

5152
#### Dependency Updates
5253

src/snowflake/snowpark/session.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,6 @@ def sql_simplifier_enabled(self, value: bool) -> None:
11221122
self._sql_simplifier_enabled = value
11231123

11241124
@cte_optimization_enabled.setter
1125-
@experimental_parameter(version="1.15.0")
11261125
def cte_optimization_enabled(self, value: bool) -> None:
11271126
warn_session_config_update_in_multithreaded_mode("cte_optimization_enabled")
11281127

tests/integ/test_cte.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
33
#
44

5-
import logging
65
import re
76
import tracemalloc
87

@@ -28,7 +27,7 @@
2827
)
2928
from tests.integ.scala.test_dataframe_reader_suite import get_reader
3029
from tests.integ.utils.sql_counter import SqlCounter, sql_count_checker
31-
from tests.utils import IS_IN_STORED_PROC, IS_IN_STORED_PROC_LOCALFS, TestFiles, Utils
30+
from tests.utils import IS_IN_STORED_PROC_LOCALFS, TestFiles, Utils
3231

3332
pytestmark = [
3433
pytest.mark.skipif(
@@ -1258,13 +1257,3 @@ def test_table_select_cte(session):
12581257
union_count=1,
12591258
join_count=0,
12601259
)
1261-
1262-
1263-
@pytest.mark.skipif(
1264-
IS_IN_STORED_PROC, reason="SNOW-609328: support caplog in SP regression test"
1265-
)
1266-
@sql_count_checker(query_count=0)
1267-
def test_cte_optimization_enabled_parameter(session, caplog):
1268-
with caplog.at_level(logging.WARNING):
1269-
session.cte_optimization_enabled = True
1270-
assert "cte_optimization_enabled is experimental" in caplog.text

0 commit comments

Comments
 (0)