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

    https://github.com/apache/spark/pull/22512#discussion_r238175630
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala ---
    @@ -148,12 +156,21 @@ class SQLQueryTestSuite extends QueryTest with 
SharedSQLContext {
           })
           // When we are regenerating the golden files we don't need to run 
all the configs as they
           // all need to return the same result
    -      if (regenerateGoldenFiles && configs.nonEmpty) {
    +      if (regenerateGoldenFiles) {
             configs.take(1)
    --- End diff --
    
    Actually, it returns an empty array?
    ```
    scala> Array.empty.take(1)
    res0: Array[Nothing] = Array()
    
    scala> Seq.empty.take(1)
    res1: Seq[Nothing] = List()
    ```


---

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

Reply via email to