SPRKPY1069
pyspark.sql.DataFrameWriter.parquet
Last updated
pyspark.sql.DataFrameWriter.parquet
Last updated
Message: If partitionBy parameter is a list, Snowpark will throw an error.
Category: Warning
When there is a usage of method where it comes to the parameter partitionBy
, the tool shows the EWI.
This is because in Snowpark the only supports a ColumnOrSqlExpr
as a partitionBy parameter.
Input code:
For this scenario the partitionBy parameter is not a list.
Output code:
The tool adds the EWI SPRKPY1069
to let you know that Snowpark throws an error if parameter is a list.
Recommended fix
Input code:
For this scenario the partitionBy parameter is a list.
Output code:
The tool adds the EWI SPRKPY1069
to let you know that Snowpark throws an error if parameter is a list.
Recommended fix
If the value of the parameter is a list
, then replace it with a ColumnOrSqlExpr
.
There is not a recommended fix for this scenario because the tool always adds this EWI just in case the partitionBy parameter is a list. Remember that in Snowpark, only accepts cloud locations using a .
For more support, you can email us at or post an issue .