viirya commented on a change in pull request #32404:
URL: https://github.com/apache/spark/pull/32404#discussion_r624217440
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
##########
@@ -325,7 +325,9 @@ case class Invoke(
@transient lazy val method = targetObject.dataType match {
case ObjectType(cls) =>
- val m = cls.getMethods.find(_.getName == encodedFunctionName)
+ val m = cls.getMethods.find { m =>
Review comment:
`StaticInvoke` calls `getDeclaredMethod` with `argClasses`. I think it
may also suffer the issue if the arg class is `Object`.
Let me see if I can come out a test case and fix it (might be in other PR).
As said above, I think it is safer to try to combine two method looking up
in master only.
--
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]