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-1874368: Skip snowflake_cortex_sentiment doctest in gcp #2830

Merged
3 changes: 3 additions & 0 deletions src/snowflake/snowpark/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10447,6 +10447,9 @@ def snowflake_cortex_sentiment(text: ColumnOrLiteralStr):

Example::

>>> import pytest
>>> if session.connection.host == "sfctest0.us-central1.gcp.snowflakecomputing.com":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These examples end up in our public facing docs. I'm not sure we want to have conditionals like this show up there.

Copy link
Contributor Author

@sfc-gh-lmukhopadhyay sfc-gh-lmukhopadhyay Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfc-gh-jrose In that case, it might be better to remove this docstring example entirely

... pytest.skip()
>>> content = "A very very bad review!"
>>> df = session.create_dataframe([[content]], schema=["content"])
>>> result = df.select(snowflake_cortex_sentiment(content)).collect()[0][0]
Expand Down
Loading