Skip to content

Commit 4ee1af8

Browse files
SNOW-1874368: skip cortex sentiment doctest if running in gcp
Signed-off-by: Labanya Mukhopadhyay <[email protected]>
1 parent f90ba59 commit 4ee1af8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/snowflake/snowpark/functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10447,6 +10447,8 @@ def snowflake_cortex_sentiment(text: ColumnOrLiteralStr):
1044710447
1044810448
Example::
1044910449
10450+
>>> if session.connection.host == "sfctest0.us-central1.gcp.snowflakecomputing.com":
10451+
... pytest.skip()
1045010452
>>> content = "A very very bad review!"
1045110453
>>> df = session.create_dataframe([[content]], schema=["content"])
1045210454
>>> result = df.select(snowflake_cortex_sentiment(content)).collect()[0][0]

0 commit comments

Comments
 (0)