Github user falaki commented on a diff in the pull request:
https://github.com/apache/spark/pull/15328#discussion_r81615475
--- 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 --
`R_LEN_T_MAX` is not readable in R. I am going to make it a configurable
option. This will give users/admins control it as well. I will probably add
another config to set a maximum value (that depending on the config can be
greater than or smaller than `R_LEN_T_MAX`)
---
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]