snowflake.snowpark.DataFrameWriter.mode¶
- DataFrameWriter.mode(save_mode: str) DataFrameWriter [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/dataframe_writer.py#L59-L81)¶
Set the save mode of this
DataFrameWriter
.- Parameters:
save_mode –
One of the following strings.
”append”: Append data of this DataFrame to the existing table. Creates a table if it does not exist.
”overwrite”: Overwrite the existing table by dropping old table.
”truncate”: Overwrite the existing table by truncating old table.
”errorifexists”: Throw an exception if the table already exists.
”ignore”: Ignore this operation if the table already exists.
Default value is “errorifexists”.
- Returns:
The
DataFrameWriter
itself.