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

    https://github.com/apache/spark/pull/17172#discussion_r104774584
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/objects.scala ---
    @@ -219,7 +219,30 @@ case class MapElementsExec(
       override def doConsume(ctx: CodegenContext, input: Seq[ExprCode], row: 
ExprCode): String = {
         val (funcClass, methodName) = func match {
           case m: MapFunction[_, _] => classOf[MapFunction[_, _]] -> "call"
    -      case _ => classOf[Any => Any] -> "apply"
    +      case _ =>
    +        (if (child.output.length == 1) child.output(0).dataType else 
NullType,
    +         outputObjAttr.dataType) match {
    +          // if a pair of an argument and return types is one of specific 
types
    +          // whose specialized method (apply$mc..$sp) is generated by 
scalac,
    +          // Catalyst generated a direct method call to the specialized 
method.
    --- End diff --
    
    can you link to some official document or blogpost?


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to