druid icon indicating copy to clipboard operation
druid copied to clipboard

ArrayIndexOutOfBoundsException while running groupby query on high granularity column

Open manu6909 opened this issue 6 years ago • 2 comments

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)

scenario1_broker.log scenario2_broker.log

manu6909 avatar Mar 23 '20 09:03 manu6909

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.

github-actions[bot] avatar Aug 05 '23 00:08 github-actions[bot]

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.

github-actions[bot] avatar Sep 03 '23 00:09 github-actions[bot]