[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to