Github user hqzizania commented on a diff in the pull request:
https://github.com/apache/spark/pull/6190#discussion_r31965494
--- Diff: R/pkg/R/serialize.R ---
@@ -37,24 +37,38 @@ writeObject <- function(con, object, writeType = TRUE) {
# passing in vectors as arrays and instead require arrays to be passed
# as lists.
type <- class(object)[[1]] # class of POSIXlt is c("POSIXlt", "POSIXt")
- if (writeType) {
- writeType(con, type)
+ isNA <- FALSE
+ if (type %in% c("integer", "character", "logical", "double", "numeric"))
{
--- End diff --
otherwise it will throw something like "During startup - Warning message:
In is.na(object) :
is.na() applied to non-(list or vector) of type 'environment'".
It have to add the limit of type of object, but there seems no other better
way.
---
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]