SPRKPY1039
pyspark.sql.column.Column.getItem has a workaround
Description
This issue appears when the tool detects the usage of pyspark.sql.column.Column.getItem which has a workaround.
Input code:
Output code:
Scenario
getItem(key: Any) -> pyspark.sql.column.Column
Action: you can use the snowpark Column indexer operator with the name of the field or the position of the field as the index. Example:
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.