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

    https://github.com/apache/spark/pull/17640#discussion_r113972686
  
    --- Diff: R/pkg/R/serialize.R ---
    @@ -83,6 +83,7 @@ writeObject <- function(con, object, writeType = TRUE) {
              Date = writeDate(con, object),
              POSIXlt = writeTime(con, object),
              POSIXct = writeTime(con, object),
    +         bigint = writeDouble(con, object),
    --- End diff --
    
    When using createDataFrame, R uses `serialize` to send data to the backend. 
When taking an action, say, `collect`, scala side logic refers to the schema 
field and calls the `readTypedObjects` where the newly added read logic kicks 
in. When it returns back to R side, the newly added write logic kicks in and R 
side can interpret it due to the R side read logic. It seems that the `write` 
logic in R side is not called, because we don't have specific type `bigint` in 
R. Right?


---
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