Skip to content

Commit 7d3eefb

Browse files
committed
clean the comment
1 parent 2a8ce0b commit 7d3eefb

File tree

1 file changed

+1
-3
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/execution/datasources

1 file changed

+1
-3
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,7 @@ case class DataSource(
416416
/**
417417
* Writes the given [[DataFrame]] out to this [[DataSource]].
418418
*
419-
* @param isForWriteOnly Whether to exit early and just write the data without returning
420-
* a [[BaseRelation]].
419+
* @param isForWriteOnly Whether to just write the data without returning a [[BaseRelation]].
421420
*/
422421
def write(
423422
mode: SaveMode,
@@ -501,7 +500,6 @@ case class DataSource(
501500
fileIndex = fileIndex)
502501
sparkSession.sessionState.executePlan(plan).toRdd
503502
if (isForWriteOnly) {
504-
// Exit earlier and return null
505503
None
506504
} else {
507505
// Replace the schema with that of the DataFrame we just wrote out to avoid re-inferring

0 commit comments

Comments
 (0)