You are viewing documentation about an older version (1.16.0). View latest version

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 DataFrameWriter itself.