From ca09bb82d49d29a5d6f088d2250e980bab64a8b7 Mon Sep 17 00:00:00 2001 From: Takeshi Yamamuro Date: Tue, 4 Dec 2018 09:39:46 +0900 Subject: [PATCH] Fix --- .../scala/org/apache/spark/sql/SQLQueryTestSuite.scala | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala index fd180ce2380a..cf4585bf7ac6 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala @@ -154,14 +154,10 @@ class SQLQueryTestSuite extends QueryTest with SharedSQLContext { val (conf, value) = confAndValue.span(_ != '=') conf.trim -> value.substring(1).trim }) - // When we are regenerating the golden files we don't need to run all the configs as they + // When we are regenerating the golden files, we don't need to set any config as they // all need to return the same result if (regenerateGoldenFiles) { - if (configs.nonEmpty) { - configs.take(1) - } else { - Array.empty[Array[(String, String)]] - } + Array.empty[Array[(String, String)]] } else { if (configs.nonEmpty) { codegenConfigSets.flatMap { codegenConfig =>