File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments