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-615065652 @skambha check the result in PostgreSQL: ``` cloud0fan=# create table t(d decimal(20, 10)); CREATE TABLE cloud0fan=# insert into t values (1.1); INSERT 0 1 cloud0fan=# insert into t values (2.2); INSERT 0 1 cloud0fan=# insert into t values (null); INSERT 0 1 cloud0fan=# select sum(d) from t; sum -------------- 3.3000000000 (1 row) ``` Nulls should be skipped when calculating aggregate functions.
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org