Skip to content

Commit f7745a0

Browse files
committed
address comments
1 parent 65a9741 commit f7745a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/main/scala/org/apache/spark/internal/io/HadoopMapReduceCommitProtocol.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ import org.apache.spark.mapred.SparkHadoopMapRedUtil
4949
* directories under destination path.
5050
*/
5151
class HadoopMapReduceCommitProtocol(
52-
jobId: String,
53-
path: String,
54-
dynamicPartitionOverwrite: Boolean = false)
52+
jobId: String,
53+
path: String,
54+
dynamicPartitionOverwrite: Boolean = false)
5555
extends FileCommitProtocol with Serializable with Logging {
5656

5757
import FileCommitProtocol._
@@ -107,7 +107,7 @@ class HadoopMapReduceCommitProtocol(
107107
val stagingDir: Path = committer match {
108108
case _ if dynamicPartitionOverwrite =>
109109
assert(dir.isDefined,
110-
"The dataset to be written must be partitioned when runtimeOverwritePartition is true.")
110+
"The dataset to be written must be partitioned when dynamicPartitionOverwrite is true.")
111111
partitionPaths += dir.get
112112
this.stagingDir
113113
// For FileOutputCommitter it has its own staging path called "work path".

0 commit comments

Comments
 (0)