cloud-fan commented on issue #27627: [WIP][SPARK-28067][SQL] Fix incorrect 
results for decimal aggregate sum by returning null on decimal overflow
URL: https://github.com/apache/spark/pull/27627#issuecomment-594010285
 
 
   > In case of the whole stage codegen, you can see the decimal ‘+’ 
expressions will at some point be larger than what can be contained in dec 
38,18 but it gets written out as null. This messes up the end result of the sum 
and you get wrong results.
   
   Still a bit confused. If it gets written out as null, then null + decimal 
always return null and the final result is null?

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