mgaido91 commented on issue #25701: [SPARK-29000][SQL] Decimal precision 
overflow when don't allow precision loss
URL: https://github.com/apache/spark/pull/25701#issuecomment-528760287
 
 
   so actually my understanding is that the problem is in the order rules are 
applied. Indeed, in `typeCoercionRules`, there are several rules between 
`DecimalPrecision` and `ImplicitTypeCasts` and if any of the rules in between 
(as in this case `CaseWhenCoercion` does) change the return type of one 
operand, this issue may arise. We might also simply skip to handle decimals in 
`ImplicitTypeCasts`, waiting for the next pass of rules to be applied so that 
`DecimalPrecision` handles them.

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


With regards,
Apache Git Services

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

Reply via email to