Skip to content

Commit 8d69c88

Browse files
committed
fix test
1 parent 4043889 commit 8d69c88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/util/DateTimeUtilsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class DateTimeUtilsSuite extends SparkFunSuite with Matchers with SQLHelper {
157157
assert(toDate("-02015").get === days(-2015, 1, 1))
158158
assert(toDate("999999-1-28").get === days(999999, 1, 28))
159159
assert(toDate("-999999-1-28").get === days(-999999, 1, 28))
160-
assert(toDate("1-1-28").get === days(1, 1, 28))
160+
assert(toDate("0001-1-28").get === days(1, 1, 28))
161161
// Int.MaxValue and Int.MaxValue + 1 day
162162
assert(toDate("5881580-7-11").get === days(5881580, 7, 11))
163163
assert(toDate("5881580-7-12").isEmpty)

0 commit comments

Comments
 (0)