diff --git a/sql/core/src/main/scala/org/apache/spark/sql/sources/interfaces.scala b/sql/core/src/main/scala/org/apache/spark/sql/sources/interfaces.scala index ace13f55b81c6..329ca5eb00ae7 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/sources/interfaces.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/sources/interfaces.scala @@ -88,8 +88,8 @@ trait CreatableRelationProvider { * contents of the DataFrame are expected to be appended to existing data. * Overwrite mode means that when saving a DataFrame to a data source, if data already exists, * existing data is expected to be overwritten by the contents of the DataFrame. - * ErrorIfExists mode means that when saving a DataFrame to a data source, if data already exists, - * an exception is expected to be thrown. + * ErrorIfExists mode means that when saving a DataFrame to a data source, + * if data already exists, an exception is expected to be thrown. * * For Java users, mode can be inspected through equality check (e.g. mode == SaveModes.Append). * diff --git a/sql/core/src/main/scala/org/apache/spark/sql/sources/modes.scala b/sql/core/src/main/scala/org/apache/spark/sql/sources/modes.scala index 6de28b43b4a22..6b0bc146974dd 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/sources/modes.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/sources/modes.scala @@ -45,4 +45,4 @@ case object Overwrite extends SaveMode * * Please use the singleton [[SaveModes.ErrorIfExists]]. */ -case object ErrorIfExists extends SaveMode \ No newline at end of file +case object ErrorIfExists extends SaveMode