Github user haiyangsea commented on a diff in the pull request:
https://github.com/apache/spark/pull/3839#discussion_r22372432
--- Diff: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
---
@@ -29,13 +29,14 @@ import org.apache.spark.sql.TestData._
import org.apache.spark.sql.test.TestSQLContext._
class SQLQuerySuite extends QueryTest with BeforeAndAfterAll {
- // Make sure the tables are loaded.
- TestData
var origZone: TimeZone = _
override protected def beforeAll() {
origZone = TimeZone.getDefault
TimeZone.setDefault(TimeZone.getTimeZone("UTC"))
+
+ // Make sure the tables are loaded.
+ TestData
--- End diff --
If I don't change this, the test will fail because of the time zone
problem in my local test environment.Obviously, it still has the time zone
problem in spark test environment even change this, I will try to fix it :)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]