panbingkun commented on code in PR #48542:
URL: https://github.com/apache/spark/pull/48542#discussion_r1806306844


##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ObjectExpressionsSuite.scala:
##########
@@ -755,6 +755,31 @@ class ObjectExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
     val genCode = StaticInvoke(TestFun.getClass, IntegerType, "foo", 
arguments).genCode(ctx)
     assert(!genCode.code.toString.contains("boxedResult"))
   }
+
+  test("StaticInvoke call return `any` method") {
+    val cls = TestStaticInvokeReturnAny.getClass
+    Seq((0, IntegerType, true), (1, IntegerType, true), (2, IntegerType, 
false)).foreach {

Review Comment:
   - case 0 - `(0, IntegerType, true)` will hit line `325` of `objects.scala`
   - case 1 - `(1, IntegerType, true)` will hit line `332` of `objects.scala`
   - case 2 - `(2, IntegerType, true)` will hit line `340` of `objects.scala`



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to