Skip to content

Commit

Permalink
add unit test for from_unixtime
Browse files Browse the repository at this point in the history
  • Loading branch information
NEUpanning committed May 23, 2024
1 parent 90961bc commit 30db1dd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ class GlutenDateExpressionsSuite extends DateExpressionsSuite with GlutenTestsTr
checkEvaluation(
FromUnixTime(Literal(-1000L), Literal(fmt2), timeZoneId),
sdf2.format(new Timestamp(-1000000)))
checkEvaluation(
FromUnixTime(Literal(Long.MAX_VALUE / 1000), Literal(fmt2), timeZoneId),
sdf2.format(new Timestamp(Long.MAX_VALUE)))
checkEvaluation(
FromUnixTime(
Literal.create(null, LongType),
Expand Down

0 comments on commit 30db1dd

Please sign in to comment.