Github user WeichenXu123 commented on the issue:

    https://github.com/apache/spark/pull/15097
  
    @shivaram 
    Oh...I found this way still has problems, Array[Nothing] in scala, after 
compiling with type erasing, at last it turned into type `Ljava.lang.object`, 
but primitive type Array such as Array[Int] after compile turned into `[I` so 
the two type still not compatible...
    
    Now I am thinking about another way, when R-side we pass an array with zero 
length, scala/java side regard it as `null` value, so it can be assigned to any 
type parameter.
    
    A typical scenario of this problem is, we want to pass an array type 
parameter from R-side, but sometime we only want to pass `null` array to 
indicate we want to use the default parameter value.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to