Links

SPRKPY1040

pyspark.sql.functions.explode has workaround

Description

This issue appears when the tool detects the usage of pyspark.sql.functions.explode which has a workaround.
Input code:
explode(col)
Output code:
#EWI: SPRKPY1040 => pyspark.sql.functions.explode has a workaround, see documentation for more info
explode(col)

Scenarios

explode(col: ColumnOrName) -> pyspark.sql.column.Column
Action: Import the snowpark_extensions package, which contains a helper for the explode function.
import snowpark_extensions
explode(col)

Recommendation