Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/15328#discussion_r81596419
--- Diff: R/pkg/R/serialize.R ---
@@ -136,8 +136,17 @@ serializeRow <- function(row) {
}
writeRaw <- function(con, batch) {
+ dataSize <- length(batch)
writeInt(con, length(batch))
- writeBin(batch, con, endian = "big")
+
+ LENTMAX <- 2147483000 # Slightly less than R_LEN_T_MAX macro in R
--- End diff --
how about we use R_LEN_T_MAX or R_LEN_T_MAX - 1 instead of hardcoding it?
---
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]