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

    https://github.com/apache/spark/pull/9565#discussion_r59133802
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/Transformer.scala ---
    @@ -90,7 +90,7 @@ abstract class UnaryTransformer[IN, OUT, T <: 
UnaryTransformer[IN, OUT, T]]
        * account of the embedded param map. So the param values should be 
determined solely by the input
        * param map.
        */
    -  protected def createTransformFunc: IN => OUT
    +  protected val createTransformFunc: (T, IN) => OUT
    --- End diff --
    
    This change is to make non-code-generated evaluation of `ScalaUDF` works 
with `RowEncoder` due to runtime mirror problem. I am thinking is it possible 
that we only support code-generated evaluation of `ScalaUDF`? Then we can avoid 
this change to `Transformer`. What you think? @rxin @davies Can you give some 
suggestions? Thanks!


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