SPRKPY1023

pyspark.sql.functions.log1p has a workaround

Category

Warning.

Description

This issue appears when the tool detects the usage of pyspark.sql.functions.log1p which has a workaround.

Input code:

col = log1p(colName)

Output code:

#EWI: SPRKPY1023 => pyspark.sql.functions.log1p has a workaround, see documentation for more info
col = log1p(colName)

Scenario:

log1p(col: ColumnOrName) Action: Log1p represents a natural log function, so we can have an equivalence on calling "function_call", using "ln" as the first parameter and by adding 1 to the second parameter.

col = call_function("ln",lit(1)+value)

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.

#332: [SIT-1562] SQL Readiness

Change request updated