Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/16689
  
    Oh @felixcheung , I was writing a comment but I just saw you. I was looking 
into this for my curiosity.
    
    Isn't this due to R type coercion rule with POSIXlt? 
    
    ```r
    > str(data.frame(col1 = c(as.POSIXct("2017-01-01 12:00:01"), NA)))
    'data.frame':       2 obs. of  1 variable:
     $ col1: POSIXct, format: "2017-01-01 12:00:01" NA
    ```
    
    ```r
    > str(data.frame(col1 = c(NA, as.POSIXct("2017-01-01 12:00:01"))))
    'data.frame':       2 obs. of  1 variable:
     $ col1: num  NA 1.48e+09
    ```
    



---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to