Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19900#discussion_r155218848
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/ScalaUDF.scala
 ---
    @@ -982,35 +982,30 @@ case class ScalaUDF(
     
       // scalastyle:on line.size.limit
     
    -  // Generate codes used to convert the arguments to Scala type for 
user-defined functions
    -  private[this] def genCodeForConverter(ctx: CodegenContext, index: Int): 
String = {
    -    val converterClassName = classOf[Any => Any].getName
    -    val typeConvertersClassName = CatalystTypeConverters.getClass.getName 
+ ".MODULE$"
    -    val expressionClassName = classOf[Expression].getName
    -    val scalaUDFClassName = classOf[ScalaUDF].getName
    +  private val converterClassName = classOf[Any => Any].getName
    +  private val expressionClassName = classOf[Expression].getName
    --- End diff --
    
    `Expression` is pre-imported, we can just write `Expression` in the 
generated code.


---

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

Reply via email to