Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/10418#discussion_r48271734
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala
---
@@ -335,7 +335,7 @@ object FunctionRegistry {
val df = clazz.getAnnotation(classOf[ExpressionDescription])
if (df != null) {
(name,
- (new ExpressionInfo(clazz.getCanonicalName, name, df.usage(),
df.extended()),
+ (new ExpressionInfo(clazz.getCanonicalName, name, df.usage(),
df.extended().stripMargin),
--- End diff --
Annotation argument needs to be a constant. Thus, I called stripMargin when
building ExpressionInfo. I am not sure if this is a right way. If so, should we
call stripMargin for df.usage() too?
If we do not care indenting, there exists another solution:
```scala
extended = """> SELECT _FUNC_(array("b", "d", "c", "a"));
4""")
```
Or do you have a better way for adding a newline marker between triple
quotes? Thank you! @marmbrus
---
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]