Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15421#discussion_r82733951
  
    --- 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(is.na(DF$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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to