You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala
+11-1
Original file line number
Diff line number
Diff line change
@@ -1619,7 +1619,11 @@ case class StringSpace(child: Expression)
1619
1619
*/
1620
1620
// scalastyle:off line.size.limit
1621
1621
@ExpressionDescription(
1622
-
usage ="_FUNC_(str, pos[, len]) - Returns the substring of `str` that starts at `pos` and is of length `len`, or the slice of byte array that starts at `pos` and is of length `len`.",
1622
+
usage ="""
1623
+
_FUNC_(str, pos[, len]) - Returns the substring of `str` that starts at `pos` and is of length `len`, or the slice of byte array that starts at `pos` and is of length `len`.
1624
+
1625
+
_FUNC_(str FROM pos[ FOR len]]) - Returns the substring of `str` that starts at `pos` and is of length `len`, or the slice of byte array that starts at `pos` and is of length `len`.
1626
+
""",
1623
1627
examples ="""
1624
1628
Examples:
1625
1629
> SELECT _FUNC_('Spark SQL', 5);
@@ -1628,6 +1632,12 @@ case class StringSpace(child: Expression)
0 commit comments