Github user dilipbiswal commented on a diff in the pull request:
https://github.com/apache/spark/pull/22274#discussion_r213838602
--- Diff: R/pkg/tests/fulltests/test_sparkSQL.R ---
@@ -1851,9 +1851,9 @@ test_that("date functions on a DataFrame", {
expect_equal(collect(select(df2, minute(df2$b)))[, 1], c(34, 24))
expect_equal(collect(select(df2, second(df2$b)))[, 1], c(0, 34))
expect_equal(collect(select(df2, from_utc_timestamp(df2$b, "JST")))[, 1],
- c(as.POSIXlt("2012-12-13 21:34:00 UTC"),
as.POSIXlt("2014-12-15 10:24:34 UTC")))
+ c(as.POSIXct("2012-12-13 21:34:00 UTC"),
as.POSIXct("2014-12-15 10:24:34 UTC")))
--- End diff --
Here i am matching the type returned by the deserializer [here]
(https://github.com/apache/spark/blob/5264164a67df498b73facae207eda12ee133be7d/R/pkg/R/deserialize.R#L95-L98)
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]