SPRKPY1011

pyspark.sql.dataframe.DataFrameStatFunctions.approxQuantile has a workaround

Category

Warning.

Description

This issue appears when the tool detects the usage of pyspark.sql.dataframe.DataFrameStatFunctions.approxQuantile which has a workaround.

Input code:

approxQuantile(col, probabilities, 2)

Output code:

#EWI: SPRKPY1011 => pyspark.sql.dataframe.DataFrameStatFunctions.approxQuantile has a workaround, see documentation for more info
approxQuantile(col, probabilities, 2)

Recommendation

  • Use approxQuantile snowpark method. Parameters don't match so they require some manual adjustments.

  • 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.