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

    https://github.com/apache/spark/pull/19464#discussion_r144617310
  
    --- Diff: core/src/test/scala/org/apache/spark/FileSuite.scala ---
    @@ -510,4 +510,87 @@ class FileSuite extends SparkFunSuite with 
LocalSparkContext {
         }
       }
     
    +  test("spark.files.ignoreEmptySplits work correctly (old Hadoop API)") {
    +    val conf = new SparkConf()
    +    conf.setAppName("test").setMaster("local").set(IGNORE_EMPTY_SPLITS, 
true)
    +    sc = new SparkContext(conf)
    +
    +    def testIgnoreEmptySplits(
    +      data: Array[Tuple2[String, String]],
    +      actualPartitionNum: Int,
    +      expectedPart: String,
    +      expectedPartitionNum: Int): Unit = {
    --- End diff --
    
    Indentation..
    
    ```scala
    def testIgnoreEmptySplits(
        data: Array[Tuple2[String, String]],
        ...
        expectedPartitionNum: Int): Unit = {
      val output = new File(tempDir, "output")
      ...
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to