SPRKPY1023
pyspark.sql.functions.log1p has a workaround
Warning.
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)
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)
- For more support, you can email us at [email protected]. If you have a contract for support with Snowflake, reach out to your sales engineer and they can direct your support needs.
Last modified 21d ago