snowflake.snowpark.DataFrameWriter.modeΒΆ
- DataFrameWriter.mode(save_mode: str) DataFrameWriter[source]ΒΆ
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
DataFrameWriteritself.