panbingkun commented on code in PR #46880:
URL: https://github.com/apache/spark/pull/46880#discussion_r1740919891


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala:
##########
@@ -3332,22 +3332,35 @@ case class FormatNumber(x: Expression, d: Expression)
 
 /**
  * Splits a string into arrays of sentences, where each sentence is an array 
of words.
- * The 'lang' and 'country' arguments are optional, and if omitted, the 
default locale is used.
+ * The 'lang' and 'country' arguments are optional, and if they are both 
omitted,
+ * the default locale (the lang is `en` and the country is `US`) is used.
  */
 @ExpressionDescription(
-  usage = "_FUNC_(str[, lang, country]) - Splits `str` into an array of array 
of words.",
+  usage = "_FUNC_(str[, lang[, country]]) - Splits `str` into an array of 
array of words.",
+  arguments = """
+    Arguments:

Review Comment:
   ref: 
https://docs.databricks.com/en/sql/language-manual/functions/sentences.html#arguments



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to