SPRKPY1045
pyspark.sql.functions.map_values has workaround
Description
This issue appears when the tool detects the usage of pyspark.sql.functions.map_values which has a workaround.
Input code:
Output code:
Scenarios
map_values(col: ColumnOrName) -> pyspark.sql.column.Column
This function is used for column that contains a map/dictionary (keys/values), to extract the list of values. Action: you can create a udf to get the values for a column. Example:
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.
Last updated