Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/15513#discussion_r84406387
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/CallMethodViaReflection.scala
---
@@ -43,11 +43,22 @@ import org.apache.spark.util.Utils
* and the second element should be a literal string for
the method name,
* and the remaining are input arguments to the Java
method.
*/
-// scalastyle:off line.size.limit
@ExpressionDescription(
- usage = "_FUNC_(class,method[,arg1[,arg2..]]) calls method with
reflection",
- extended = "> SELECT _FUNC_('java.util.UUID', 'randomUUID');\n
c33fb387-8500-4bfa-81d2-6e0e3e930df2")
-// scalastyle:on line.size.limit
+ usage = "_FUNC_(class, method[, arg1[, arg2 ..]]) calls method with
reflection",
+ extended = """
+ _FUNC_(class, method[, arg1[, arg2 ..]])
--- End diff --
why do we need to repeat the function definition again in extended for
every function?
---
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]