Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/10418#discussion_r48231012
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
---
@@ -26,6 +26,9 @@ import org.apache.spark.sql.types._
/**
* Given an array or map, returns its size.
*/
+@ExpressionDescription(
+ usage = "_FUNC_(column) - Returns the length of the array or map stored
in the column",
+ extended = "> SELECT _FUNC_(array(\"b\", \"d\", \"c\", \"a\"));\n 4")
--- End diff --
Tried to do it, but realized annotation argument needs to be a constant. A
newline marker `\n` is an issue here. We are unable to call `stripMargin` after
triple quotes. Thus, I called `stripMargin` when building `ExpressionInfo`. Do
you like it?
---
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]