riosw commented on issue #10486:
URL: https://github.com/apache/datafusion/issues/10486#issuecomment-2108432412
I was playing around with this issue and found a more minimal example:
```
WITH A AS (
SELECT
1 AS id, 1 AS foo
UNION ALL
SELECT
1, 5
)
SELECT
ARRAY_AGG(DISTINCT a.foo),
SUM(DISTINCT 1)
FROM
A a
GROUP BY
a.id;
```
It is interesting though, using SUM(1) instead of SUM(DISTINCT 1) did not
panic
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]