Skip to content

Commit 97386b3

Browse files
author
Davies Liu
committed
address comment
1 parent 2c567a5 commit 97386b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,15 @@ private[spark] object PythonRDD extends Logging {
383383
dataOut.write(bytes)
384384
}
385385
}
386+
386387
def writeS(str: String) {
387388
if (str == null) {
388389
dataOut.writeInt(SpecialLengths.NULL)
389390
} else {
390391
writeUTF(str, dataOut)
391392
}
392393
}
394+
393395
if (iter.hasNext) {
394396
val first = iter.next()
395397
val newIter = Seq(first).iterator ++ iter

0 commit comments

Comments
 (0)