Skip to content

Commit

Permalink
Modified format and test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-sjayabalan committed Aug 21, 2024
1 parent 3660a9a commit 83282ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2337,8 +2337,8 @@ trait FunctionSuite extends TestData {
}

test("unix_timestamp") {
val data = Seq(Timestamp.valueOf("2024-04-08 23:39:20.123-07:00")).toDF("a")
checkAnswer(data.select(unix_timestamp(col("a"))), Seq(Row("1712619560123")), sort = false)
val data = Seq(Timestamp.valueOf("2013-05-08 23:39:20.123")).toDF("a")
checkAnswer(data.select(unix_timestamp(col("a"))), Seq(Row("1368056360")), sort = false)
}
}

Expand Down

0 comments on commit 83282ad

Please sign in to comment.