[
https://issues.apache.org/jira/browse/SPARK-46036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-46036:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
>
> 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: [email protected]
For additional commands, e-mail: [email protected]