yaooqinn commented on code in PR #36222:
URL: https://github.com/apache/spark/pull/36222#discussion_r851843294
##########
core/src/main/scala/org/apache/spark/rdd/HadoopRDD.scala:
##########
@@ -457,9 +457,9 @@ private[spark] object HadoopRDD extends Logging {
if (locationStr != "localhost") {
if (loc.isInMemory) {
logDebug(s"Partition $locationStr is cached by Hadoop.")
- Some(HDFSCacheTaskLocation(locationStr).toString)
+ Option(HDFSCacheTaskLocation(locationStr).toString)
Review Comment:
shall we filter cases that locationStr is null first, or leave it
`hdfs_cache_null` as a result?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]