Github user lw-lin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16987#discussion_r101917807
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/streaming/FileStreamSourceSuite.scala
 ---
    @@ -76,12 +76,13 @@ abstract class FileStreamSourceTest
         protected def addData(source: FileStreamSource): Unit
       }
     
    -  case class AddTextFileData(content: String, src: File, tmp: File)
    -    extends AddFileData {
    +  case class AddTextFileData (
    +      content: String, src: File, tmp: File, finalFileName: Option[String] 
= None
    +    ) extends AddFileData {
     
         override def addData(source: FileStreamSource): Unit = {
           val tempFile = Utils.tempFileWith(new File(tmp, "text"))
    -      val finalFile = new File(src, tempFile.getName)
    +      val finalFile = new File(src, 
finalFileName.getOrElse(tempFile.getName))
    --- End diff --
    
    this is to keep track of the file name for later checking


---
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]

Reply via email to