Skip to content

Commit 310dd55

Browse files
committed
remove dup test in rebase
1 parent 980b092 commit 310dd55

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -304,19 +304,6 @@ class DateExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
304304
NextDay(Literal(Date.valueOf("2015-07-23")), Literal.create(null, StringType)), null)
305305
}
306306

307-
test("datetime function current_date") {
308-
val d0 = DateTimeUtils.millisToDays(System.currentTimeMillis())
309-
val cd = CurrentDate().eval(EmptyRow).asInstanceOf[Int]
310-
val d1 = DateTimeUtils.millisToDays(System.currentTimeMillis())
311-
assert(d0 <= cd && cd <= d1 && d1 - d0 <= 1)
312-
}
313-
314-
test("datetime function current_timestamp") {
315-
val ct = DateTimeUtils.toJavaTimestamp(CurrentTimestamp().eval(EmptyRow).asInstanceOf[Long])
316-
val t1 = System.currentTimeMillis()
317-
assert(math.abs(t1 - ct.getTime) < 5000)
318-
}
319-
320307
test("function to_date") {
321308
checkEvaluation(
322309
ToDate(Literal(Date.valueOf("2015-07-22"))),

0 commit comments

Comments
 (0)