SPRKPY1012
pyspark.sql.dataframe.DataFrameStatFunctions.writeTo has a workaround
Warning.
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)
writeTo(table: str)
Action: Use df.write.SaveAsTable() instead.
import df.write as wt
writer = wt.SaveAsTable(table)
- 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