snowflake.snowpark.DataFrameWriter.mode¶
- DataFrameWriter.mode(save_mode: str) DataFrameWriter [source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/dataframe_writer.py#L56-L76)¶
Set the save mode of this
DataFrameWriter
.- Parameters:
save_mode –
One of the following strings.
”append”: Append data of this DataFrame to existing data.
”overwrite”: Overwrite existing data.
”errorifexists”: Throw an exception if data already exists.
”ignore”: Ignore this operation if data already exists.
Default value is “errorifexists”.
- Returns:
The
DataFrameWriter
itself.