SPRKPY1024
pyspark.sql.functions.log2 has a workaround
Category
Warning.
Description
This issue appears when the tool detects the usage of pyspark.sql.functions.log2 which has a workaround.
Input code:
col = log2(colName)
Output code:
#EWI: SPRKPY1024 => pyspark.sql.functions.log2 has a workaround, see documentation for more info
col = log2(colName)
Scenario:
log2(col: ColumnOrName) Action: There is no log2 implementation but can be used log with 2 as the base used to calculate de logarithm.
col = log(lit(2),colName)
Recommendation
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.