[SPARK-14402][HOTFIX] Fix ExpressionDescription annotation
## What changes were proposed in this pull request?
Fix for the error introduced in c59abad052
:
```
/Users/jacek/dev/oss/spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala:626: error: annotation argument needs to be a constant; found: "_FUNC_(str) - ".+("Returns str, with the first letter of each word in uppercase, all other letters in ").+("lowercase. Words are delimited by white space.")
"Returns str, with the first letter of each word in uppercase, all other letters in " +
^
```
## How was this patch tested?
Local build
Author: Jacek Laskowski <jacek@japila.pl>
Closes #12192 from jaceklaskowski/SPARK-14402-HOTFIX.
This commit is contained in:
parent
73b56a3c6c
commit
6447098013
|
@ -622,9 +622,9 @@ case class FormatString(children: Expression*) extends Expression with ImplicitC
|
|||
* Words are delimited by whitespace.
|
||||
*/
|
||||
@ExpressionDescription(
|
||||
usage = "_FUNC_(str) - " +
|
||||
"Returns str, with the first letter of each word in uppercase, all other letters in " +
|
||||
"lowercase. Words are delimited by white space.",
|
||||
usage =
|
||||
"""_FUNC_(str) - Returns str with the first letter of each word in uppercase.
|
||||
All other letters are in lowercase. Words are delimited by white space.""",
|
||||
extended = "> SELECT initcap('sPark sql');\n 'Spark Sql'")
|
||||
case class InitCap(child: Expression) extends UnaryExpression with ImplicitCastInputTypes {
|
||||
|
||||
|
|
Loading…
Reference in a new issue