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 83282ad commit dccbc12
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2337,8 +2337,9 @@ trait FunctionSuite extends TestData {
}

test("unix_timestamp") {
val expected = Seq(1368056360).toDF("epoch")
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)
checkAnswer(data.select(unix_timestamp(col("a"))), expected, sort = false)
}
}

Expand Down

0 comments on commit dccbc12

Please sign in to comment.