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

    https://github.com/apache/spark/pull/20934#discussion_r178107925
  
    --- 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 --
    
    `deterministic ` should be part of UDF definition, instead of a parameter 
of register function. 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to