Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22512#discussion_r238172470
  
    --- 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 --
    
    what if `configs` is empty? `take(1)` will fail


---

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

Reply via email to