You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2025/02/06 01:41:00 UTC
[jira] [Assigned] (SPARK-51084) Assign appropriate error class for negativeScaleNotAllowedError
[ https://issues.apache.org/jira/browse/SPARK-51084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon reassigned SPARK-51084:
------------------------------------
Assignee: Amanda Liu
> Assign appropriate error class for negativeScaleNotAllowedError
> ---------------------------------------------------------------
>
> Key: SPARK-51084
> URL: https://issues.apache.org/jira/browse/SPARK-51084
> Project: Spark
> Issue Type: Task
> Components: Spark Core
> Affects Versions: 4.0.0
> Reporter: Amanda Liu
> Assignee: Amanda Liu
> Priority: Minor
> Labels: pull-request-available
>
> Improve user-facing error message for `negativeScaleNotAllowedError`. Previously it was an internal error, even though it should have a user-facing error class.
> Previous code:
> {code:java}
> def negativeScaleNotAllowedError(scale: Int): Throwable = {
> val sqlConf = QuotingUtils.toSQLConf("spark.sql.legacy.allowNegativeScaleOfDecimal")
> SparkException.internalError(
> s"Negative scale is not allowed: ${scale.toString}." +
> s" Set the config ${sqlConf}" +
> " to \"true\" to allow it.")
> } {code}
>
>
--
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