SPRKPY1012

pyspark.sql.dataframe.DataFrameStatFunctions.writeTo has a workaround

Category

Warning.

Description

This issue appears when the tool detects the usage of pyspark.sql.dataframe.DataFrameStatFunctions.writeTo which has a workaround.

Input code:

writer = writeTo(table)

Output code:

#EWI: SPRKPY1012 => pyspark.sql.dataframe.DataFrameStatFunctions.writeTo has a workaround, see documentation for more info
writer = writeTo(table)

Scenario:

writeTo(table: str) Action: Use df.write.SaveAsTable() instead.

import df.write as wt
writer = wt.SaveAsTable(table)

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