AngersZhuuuu opened a new pull request #31971:
URL: https://github.com/apache/spark/pull/31971


   
   ### What changes were proposed in this pull request?
   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
   We should use DataType's catalogString.
   ```
   
   ### Why are the changes needed?
   Improve error message
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Exist UT


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to