Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1758877 Fix flaky test test_snowflake_cortex_summarize #2492

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def test_apply_snowpark_python_function_not_implemented():


@sql_count_checker(query_count=1)
@pytest.mark.skip("SNOW-1758914 snowflake.cortex.summarize error on GCP")
def test_apply_snowflake_cortex_summarize():
from snowflake.snowpark.functions import snowflake_cortex_summarize

Expand Down
3 changes: 2 additions & 1 deletion tests/integ/test_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -2265,6 +2265,7 @@ def test_ln(session):
"config.getoption('local_testing_mode', default=False)",
reason="FEAT: snowflake_cortex functions not supported",
)
@pytest.mark.skip("SNOW-1758914 snowflake.cortex.summarize error on GCP")
def test_snowflake_cortex_summarize(session):
content = """In Snowpark, the main way in which you query and process data is through a DataFrame. This topic explains how to work with DataFrames.

Expand All @@ -2291,6 +2292,6 @@ def test_snowflake_cortex_summarize(session):
0
][0]
summary_from_str = df.select(snowflake_cortex_summarize(content)).collect()[0][0]
assert summary_from_col == summary_from_str
# this length check is to get around the fact that this function may not be deterministic
assert 0 < len(summary_from_col) < len(content)
assert 0 < len(summary_from_str) < len(content)
Loading