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

  • For more support, you can email us at snowconvert-info@snowflake.com. If you have a contract for support with Snowflake, reach out to your sales engineer and they can direct your support needs.