cloud-fan commented on issue #25347: [SPARK-28610][SQL] Allow having a decimal 
buffer for long sum
URL: https://github.com/apache/spark/pull/25347#issuecomment-523465552
 
 
   We need to be careful when adding configs to control query semantic. We have 
a lot of such configs now, but most of them are legacy configs. Legacy configs 
are OK, since they are not mainly for controlling query semantic, but to 
provide a way to restore the legacy behavior.
   
   That said, if there is a strong reason to change the return type of sum from 
long to decimal, let's go for it and add a legacy config. But seems it's not 
the case here. Spark needs to follow SQL standard but not Postgres, so making 
Spark behave the same with Postgres is not a strong reason to me.
   
   If the goal is to leverage the ported Postgres tests, I think it's 
reasonable. But the config should be internal and clearly states that it's only 
used in the ported Postgres tests.

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