Github user felixcheung commented on a diff in the pull request:
    --- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R ---
    @@ -379,6 +379,17 @@ test_that("create DataFrame with different data 
types", {
       expect_equal(collect(df), data.frame(l, stringsAsFactors = FALSE))
    +test_that("SPARK-17811: can create DataFrame containing NA as date and 
time", {
    +  df <- data.frame(
    +    id = 1:2,
    +    time = c(as.POSIXlt("2016-01-10"), NA),
    +    date = c(as.Date("2016-10-01"), NA))
    +  DF <- collect(createDataFrame(df))
    +  expect_true($date[2]))
    --- End diff --
    We should check the valid dates are correctly serialized too?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to