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

    https://github.com/apache/spark/pull/20934#discussion_r178217425
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/UDFRegistration.scala ---
    @@ -217,6 +217,27 @@ class UDFRegistration private[sql] (functionRegistry: 
FunctionRegistry) extends
         if (nullable) udf else udf.asNonNullable()
       }
     
    +  /**
    +   * Registers a deterministic Scala closure of 2 arguments as 
user-defined function (UDF).
    +   * @since 2.4.0
    +   */
    +  def registerV2(name: String, func: Function2[_, _, _], returnType: 
DataType,
    +    input1Type: DataType, input2Type: DataType, nullable: Boolean, 
deterministic: Boolean)
    --- End diff --
    
    so you mean:
    ```
    def registerV2(udf: UserDefinedFunctionV2) 
    ```
    ?


---

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

Reply via email to