Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/16451#discussion_r95078070
--- Diff:
streaming/src/test/scala/org/apache/spark/streaming/CheckpointSuite.scala ---
@@ -629,7 +629,7 @@ class CheckpointSuite extends TestSuiteBase with
DStreamCheckpointTester
ssc.graph.getInputStreams().head.asInstanceOf[FileInputDStream[_,
_, _]]
val filenames =
fileInputDStream.batchTimeToSelectedFiles.synchronized
{ fileInputDStream.batchTimeToSelectedFiles.values.flatten }
- filenames.map(_.split(File.separator).last.toInt).toSeq.sorted
+ filenames.map(_.split("/").last.toInt).toSeq.sorted
--- End diff --
This is always "/" because `FileInputDStream.batchTimeToSelectedFiles` is
in form of `/a/b/c` via
https://github.com/apache/spark/blob/39e2bad6a866d27c3ca594d15e574a1da3ee84cc/streaming/src/main/scala/org/apache/spark/streaming/dstream/FileInputDStream.scala#L207
```scala
scala> import org.apache.hadoop.fs.Path
import org.apache.hadoop.fs.Path
scala> new Path("C:\\a\\b\\c").toString
res0: String = C:/a/b/c
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]