srielau commented on code in PR #42985:
URL: https://github.com/apache/spark/pull/42985#discussion_r1338011972
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala:
##########
@@ -61,64 +62,88 @@ case class PrintToStderr(child: Expression) extends
UnaryExpression {
/**
* Throw with the result of an expression (used for debugging).
*/
+// scalastyle:off line.size.limit
@ExpressionDescription(
- usage = "_FUNC_(expr) - Throws an exception with `expr`.",
+ usage = "_FUNC_( expr [, errorParams ]) - Throws a USER_RAISED_EXCEPTION
with `expr` as message, or a defined error class in `expr` with a parameter
map.",
Review Comment:
```suggestion
usage = "_FUNC_( expr [, errorParams ]) - Throws a USER_RAISED_EXCEPTION
with `expr` as message, or a defined error class in `expr` with a parameter
map. A `null` errorParms is equivalent to an empty map.",
```
--
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]