Skip to content

Commit f434378

Browse files
committed
Fix tests.
1 parent 32cc391 commit f434378

File tree

1 file changed

+2
-2
lines changed
  • sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+2
-2
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class CastSuite extends SparkFunSuite with ExpressionEvalHelper {
324324

325325
test("data type casting") {
326326
val sd = "1970-01-01"
327-
val d = withDefaultTimeZone(TimeZoneGMT)(Date.valueOf(sd))
327+
val d = Date.valueOf(sd)
328328
val zts = sd + " 00:00:00"
329329
val sts = sd + " 00:00:02"
330330
val nts = sts + ".1"
@@ -477,7 +477,7 @@ class CastSuite extends SparkFunSuite with ExpressionEvalHelper {
477477
}
478478

479479
test("cast from date") {
480-
val d = withDefaultTimeZone(TimeZoneGMT)(Date.valueOf("1970-01-01"))
480+
val d = Date.valueOf("1970-01-01")
481481
checkEvaluation(cast(d, ShortType), null)
482482
checkEvaluation(cast(d, IntegerType), null)
483483
checkEvaluation(cast(d, LongType), null)

0 commit comments

Comments
 (0)