Skip to content

Commit 01dab3a

Browse files
committed
fix test failure of SQLQuerySuite
1 parent 84acd08 commit 01dab3a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,19 @@
1717

1818
package org.apache.spark.sql
1919

20+
import java.util.{Locale, TimeZone}
21+
2022
import org.apache.spark.sql.catalyst.plans._
2123
import org.apache.spark.sql.catalyst.util._
2224
import org.apache.spark.sql.columnar.InMemoryRelation
2325

2426
class QueryTest extends PlanTest {
2527

28+
// Timezone is fixed to America/Los_Angeles for those timezone sensitive tests (timestamp_*)
29+
TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"))
30+
// Add Locale setting
31+
Locale.setDefault(Locale.US)
32+
2633
/**
2734
* Runs the plan and makes sure the answer contains all of the keywords, or the
2835
* none of keywords are listed in the answer

0 commit comments

Comments
 (0)