borasy commented on issue #10221:
URL: https://github.com/apache/druid/issues/10221#issuecomment-785703658
Hi @gianm,
Is there any plan to support Union in a subquery and then GroupBy similar to
below query?
```
SELECT type, sum(cnt)
FROM (
SELECT
type,
COUNT(*) AS cnt
FROM
tbl_a
GROUP BY type
UNION ALL
SELECT
type,
COUNT(*) AS cnt
FROM
tbl_b
GROUP BY type
)
GROUP BY type
```
Thanks,
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]