ulysses-you commented on PR #39822:
URL: https://github.com/apache/spark/pull/39822#issuecomment-1410206747

   > how does cast(0 as decimal(0, 0)) work?
   
   It's wrapped in Decimal first which internally use longVal to represent the 
decimal value so it won't fail. The changePrecision method only fail with 
decimal(0, 0) if it uses decimalVal(BigDecimal).
   
   > Another place to check is user-specified schema when reading data source
   
   This case should be covered. It's similar with `create table ...` ddl. I 
added a new test for it.
   


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

Reply via email to