mgaido91 commented on issue #25347: [SPARK-28610][SQL] Allow having a decimal 
buffer for long sum
URL: https://github.com/apache/spark/pull/25347#issuecomment-523091311
 
 
   Well, actually mainstream DBs behave differently among each other:
   
    - SQLServer returns bigint for a sum of bigint, int for a sum of int, 
decimal(28,s) for a sum of decimal(p,s);
    - MySQL returns decimal(38,0) for a sum of int, decimal(41, 0) for a sum of 
long;
    - Postgres behaves like after this PR with the flag on, ie. a sum of 
integers returns a long, while a sum of longs returns a decimal.

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