tanelk commented on a change in pull request #31983: URL: https://github.com/apache/spark/pull/31983#discussion_r603281097
########## File path: sql/core/src/test/resources/sql-tests/inputs/group-by.sql ########## @@ -179,3 +179,11 @@ SELECT count(*) FROM test_agg WHERE k = 1 or k = 2 or count(*) + 1L > 1L or max( -- Aggregate with multiple distinct decimal columns SELECT AVG(DISTINCT decimal_col), SUM(DISTINCT decimal_col) FROM VALUES (CAST(1 AS DECIMAL(9, 0))) t(decimal_col); + +-- SPARK-34882: Aggregate with multiple distinct null sensitive aggregators +SELECT + first(DISTINCT a), last(DISTINCT a), + first(a), last(a), + first(DISTINCT b), last(DISTINCT b), + first(b), last(b) Review comment: Doesn't order by sort the output rows? And here is only one. I'll still give it a try. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org