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

    https://github.com/apache/spark/pull/15328#discussion_r81646298
  
    --- Diff: R/pkg/R/sparkR.R ---
    @@ -394,6 +394,16 @@ sparkR.session <- function(
                                     sparkConfigMap,
                                     enableHiveSupport)
         assign(".sparkRsession", sparkSession, envir = .sparkREnv)
    +
    +    # Set maximum size of serialized data that can be sent as invokeJava 
arguments
    +    assign(
    +      ".maxArgByteSize",
    +      callJMethod(
    +        callJMethod(sparkSession, "conf"),
    +        "get",
    +        "spark.r.maxArgByteSize",
    +        toString(.Machine$integer.max * 10)),
    +      envir = .sparkREnv)
    --- End diff --
    
    you probably want this set on both branches and not just the `else`?
    in the above case the config could change when there is an existing 
sparkSession


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