769cf7b966
### What changes were proposed in this pull request? Improve error message for casting cause overflow error. We should use DataType's catalogString. ### Why are the changes needed? Improve error message ### Does this PR introduce _any_ user-facing change? For example: ``` set spark.sql.ansi.enabled=true; select tinyint(128) * tinyint(2); ``` Error message before this pr: ``` Casting 128 to scala.Byte$ causes overflow ``` After this pr: ``` Casting 128 to tinyint causes overflow ``` ### How was this patch tested? Added UT Closes #31971 from AngersZhuuuu/SPARK-34744. Authored-by: Angerszhuuuu <angers.zhu@gmail.com> Signed-off-by: Kent Yao <yao@apache.org> |
||
---|---|---|
.. | ||
benchmarks | ||
src | ||
pom.xml |