SPRKPY1020
pyspark.sql.functions.instr
Message: pyspark.sql.functions.instr has a workaround
Category: Warning.
Description
This issue appears when the tool detects the usage of pyspark.sql.functions.instr which has a workaround.
Scenario
Input
Here is a basic example of usage of pyspark instr:
Output:
SMA returns the EWI SPRKPY1020 over the line where instr is used, so you can use to identify where to fix.
Recommended fix
Requires a manual change by using the function charindex and changing the order of the first two parameters.
Additional recommendation
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
Last updated