PNDSPY1018

Message < element > defaults to single node pandas execution via UDF/Sproc.

Category Warning

Description

This issue appears when the SMA identifies a pandas element that is supported in Snowpark pandas but defaults to single node pandas execution via UDF/Sproc instead of distributed execution.

This means the operation will work correctly, but it may have performance implications for large datasets as it will be executed locally on a single node rather than being distributed across Snowflake’s compute resources.

Scenario

A pandas element that defaults to single node pandas execution.

Input

The following example shows a pandas element that defaults to single node execution.

import pandas as pd

df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]})
result = df.some_method()  # This method defaults to UDF/Sproc execution
Copy

Output

The SMA adds the EWI PNDSPY1018 to the output code to let you know that this element defaults to single node pandas execution.

from snowflake.snowpark.modin import plugin
import modin.pandas as pd

df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]})
#EWI: PNDSPY1018 => Element defaults to single node pandas execution via UDF/Sproc.
result = df.some_method()
Copy