dongjoon-hyun commented on a change in pull request #32532:
URL: https://github.com/apache/spark/pull/32532#discussion_r631629800
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
##########
@@ -145,12 +151,7 @@ trait InvokeLike extends Expression with NonSQLExpression {
case e: java.lang.reflect.InvocationTargetException if e.getCause !=
null =>
throw e.getCause
}
- val boxedClass = ScalaReflection.typeBoxedJavaMapping.get(dataType)
- if (boxedClass.isDefined) {
- boxedClass.get.cast(ret)
- } else {
- ret
- }
+ boxingFn(ret)
Review comment:
> This could speed up the performance a bit.
Are you going to attach the new benchmark result?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]