cloud-fan commented on code in PR #42985:
URL: https://github.com/apache/spark/pull/42985#discussion_r1338012200
##########
sql/core/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -3250,6 +3250,16 @@ object functions {
*/
def raise_error(c: Column): Column = Column.fn("raise_error", c)
+ /**
+ * Throws an exception with the provided error class and parameter map.
+ *
+ * @group misc_funcs
+ * @since 3.5.0
+ */
+ def raise_error(c: Column, e: Column): Column = withExpr {
+ RaiseError(c.expr, e.expr)
Review Comment:
should call `Column.fn`
--
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]