ArrayIndexOutOfBoundsException while running groupby query on high granularity column
Druid query failed with ArrayIndexOutOfBoundsException error when running a group by query with a high granularity column.
Affected Version
0.16.1-incubating
Description
While running a group by query using a high granularity column, druid SQL is throwing ArrayIndexOutOfBoundsException. This issue only observed while using a specific column in the group by clause
Distinct values of the column used: 37 million Cluster setup: 5 node cluster with 2 brokers, 3 historicals and 1 master
Scenario 1
Query with group by and order by clause
Query executed: SELECT sum(total_bytes) as a, url from proxy_agg group by 2 order by 1 desc
Result : ERROR
Exception log from broker log: Attachment (scenario1_broker.log)
Scenario 2
Query with group by, order by and limit clause
Query executed: SELECT sum(total_cs_bytes) as a, url from proxy_agg group by 2 order by 1 desc, 2 asc limit 1000
Result : ERROR
Exception log from broker log: Attachment (scenario2_broker.log)
This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.