DataFrameWriter.Mode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Mode(SaveMode) |
Specifies the behavior when data or table already exists. |
Mode(String) |
Specifies the behavior when data or table already exists. |
Mode(SaveMode)
Specifies the behavior when data or table already exists.
public Microsoft.Spark.Sql.DataFrameWriter Mode(Microsoft.Spark.Sql.SaveMode saveMode);
member this.Mode : Microsoft.Spark.Sql.SaveMode -> Microsoft.Spark.Sql.DataFrameWriter
Public Function Mode (saveMode As SaveMode) As DataFrameWriter
Parameters
- saveMode
- SaveMode
Save mode enum
Returns
This DataFrameWriter object
Remarks
Options include: - SaveMode.Overwrite: overwrite the existing data. - SaveMode.Append: append the data. - SaveMode.Ignore: ignore the operation (i.e. no-op). - SaveMode.ErrorIfExists: default option, throw an exception at runtime.
Applies to
Mode(String)
Specifies the behavior when data or table already exists.
public Microsoft.Spark.Sql.DataFrameWriter Mode(string saveMode);
member this.Mode : string -> Microsoft.Spark.Sql.DataFrameWriter
Public Function Mode (saveMode As String) As DataFrameWriter
Parameters
- saveMode
- String
Save mode string
Returns
This DataFrameWriter object
Remarks
Options include: - "overwrite": overwrite the existing data. - "append": append the data. - "ignore": ignore the operation (i.e.no-op). - "error" or "errorifexists": default option, throw an exception at runtime.