Github user kevinyu98 commented on a diff in the pull request:
https://github.com/apache/spark/pull/19302#discussion_r140433877
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala
---
@@ -533,20 +533,30 @@ object StringTrim {
@ExpressionDescription(
usage = """
_FUNC_(str) - Removes the leading and trailing space characters from
`str`.
- _FUNC_(BOTH trimStr FROM str) - Remove the leading and trailing
trimString from `str`
+ _FUNC_(BOTH trimStr FROM str) - Remove the leading and trailing
`trimStr` characters from `str`
+ _FUNC_(LEADING trimStr FROM str) - Remove the leading `trimStr`
characters from `str`
+ _FUNC_(TRAILING trimStr FROM str) - Remove the trailing `trimStr`
characters from `str`
--- End diff --
I see, thanks for finding this. I put the extra line there, then run this
below
cd sql
create-docs.sh
it generate doc like this.
trim
trim(str) - Removes the leading and trailing space characters from str.
trim(BOTH trimStr FROM str) - Remove the leading and trailing trimStr
characters from str
trim(LEADING trimStr FROM str) - Remove the leading trimStr characters from
str
trim(TRAILING trimStr FROM str) - Remove the trailing trimStr characters
from str
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]