Github user davies commented on the pull request:

    https://github.com/apache/spark/pull/8264#issuecomment-132290516
  
    @yu-iskw You add this patch, then you do not need the special version of 
rand/randn
    ```
    --- a/core/src/main/scala/org/apache/spark/api/r/RBackendHandler.scala
    +++ b/core/src/main/scala/org/apache/spark/api/r/RBackendHandler.scala
    @@ -181,6 +181,7 @@ private[r] class RBackendHandler(server: RBackend)
           // Convert native parameters to Object types as args is 
Array[Object] here
           if (parameterType.isPrimitive) {
             parameterWrapperType = parameterType match {
    +          case java.lang.Long.TYPE => classOf[java.lang.Integer]  // R 
does not have long
               case java.lang.Integer.TYPE => classOf[java.lang.Integer]
               case java.lang.Double.TYPE => classOf[java.lang.Double]
               case java.lang.Boolean.TYPE => classOf[java.lang.Boolean]
    ```


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