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 d2077a07f440a8176fe6a80f56f00466aaf1fa3f..a16d7ed0a7c29747d2eabbd124d9b898e1de6dbd 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 @@ -148,9 +148,9 @@ trait StreamSinkProvider { @DeveloperApi trait CreatableRelationProvider { /** - * Creates a relation with the given parameters based on the contents of the given - * DataFrame. The mode specifies the expected behavior of createRelation when - * data already exists. + * Save the DataFrame to the destination and return a relation with the given parameters based on + * the contents of the given DataFrame. The mode specifies the expected behavior of createRelation + * when data already exists. * Right now, there are three modes, Append, Overwrite, and ErrorIfExists. * Append mode means that when saving a DataFrame to a data source, if data already exists, * contents of the DataFrame are expected to be appended to existing data.