itholic opened a new pull request, #38644: URL: https://github.com/apache/spark/pull/38644
### What changes were proposed in this pull request? This PR proposes to rename `OUT_OF_DECIMAL_TYPE_RANGE` to `NUMERIC_OUT_OF_SUPPORTED_RANGE`, and also improve its error message. ### Why are the changes needed? Error class and its error message should be clear/brief. We already have `NUMERIC_OUT_OF_RANGE`, so `NUMERIC_OUT_OF_SUPPORTED_RANGE` more makes sense and the error message should be more specific. ### Does this PR introduce _any_ user-facing change? The error message is a bit improved. From ``` Out of decimal type range: <value>. ``` To ``` The value <value> cannot be interpreted as a numeric since it has more than 38 digits. ``` ### How was this patch tested? ``` ./build/sbt “sql/testOnly org.apache.spark.sql.SQLQueryTestSuite*” ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
