Wenchen Fan created SPARK-46036: ----------------------------------- Summary: raise_error should only take the error class parameter for internal usage Key: SPARK-46036 URL: https://issues.apache.org/jira/browse/SPARK-46036 Project: Spark Issue Type: Improvement Components: SQL Affects Versions: 4.0.0 Reporter: Wenchen Fan
In [https://github.com/apache/spark/pull/42985] , we extended the `raise_error` function to take an extra error-class parameter. However, this is too powerful as users may use it to throw special internal errors that we don't expect them to throw. It's useful to have this `raise_error` extension for internal usage. We should create an `ExpressionBuilder` for `raise_error` function, so that we only allow end users to pass the error message, not error class. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org