Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions src/snowflake/snowpark/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12011,7 +12011,7 @@ def ai_filter(
... ai_filter("Is the country in Europe?", col("country")).as_("europe"),
... ai_filter("Is the country in North America?", col("country")).as_("north_america"),
... ai_filter("Is the country in Central America?", col("country")).as_("central_america"),
... ).show()
... ).show() # doctest: +SKIP
-----------------------------------------------------------
|"ASIA" |"EUROPE" |"NORTH_AMERICA" |"CENTRAL_AMERICA" |
-----------------------------------------------------------
Expand All @@ -12020,7 +12020,7 @@ def ai_filter(
|False |False |False |True |
-----------------------------------------------------------
<BLANKLINE>
>>> df.filter(ai_filter("Is the country in Asia?", col("country"))).show()
>>> df.filter(ai_filter("Is the country in Asia?", col("country"))).show() # doctest: +SKIP
-------------
|"COUNTRY" |
-------------
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/test_telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
safe_telemetry,
ResourceUsageCollector,
)
from tests.utils import IS_MACOS


@safe_telemetry
Expand Down Expand Up @@ -46,6 +47,9 @@ def test_resource_usage_time():
assert cpu_time > 0.0, cpu_time


@pytest.mark.skipif(
IS_MACOS, reason="SNOW-2005276: fix macos environment for telemetry tests"
)
def test_resource_usage_memory():
with ResourceUsageCollector() as resource_usage_collector:
_ = [1] * 10**6
Expand Down
Loading