Github user JoshRosen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3803#discussion_r23881511
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/dstream/FileInputDStream.scala
 ---
    @@ -237,7 +240,14 @@ class FileInputDStream[K: ClassTag, V: ClassTag, F <: 
NewInputFormat[K,V] : Clas
       /** Generate one RDD from an array of files */
       private def filesToRDD(files: Seq[String]): RDD[(K, V)] = {
         val fileRDDs = files.map(file =>{
    -      val rdd = context.sparkContext.newAPIHadoopFile[K, V, F](file)
    +      val rdd = conf match {
    +        case Some(config) => context.sparkContext.newAPIHadoopFile(file,
    --- End diff --
    
    Another minor style thing, but I'd put the `file` on its own line, like the 
other arguments.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to