You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/11/29 09:20:00 UTC
[jira] [Assigned] (SPARK-46036) raise_error should only take the error class parameter for internal usage
[ https://issues.apache.org/jira/browse/SPARK-46036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot reassigned SPARK-46036:
--------------------------------------
Assignee: Apache Spark
> 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
> Assignee: Apache Spark
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org