Philip Deegan created DRILL-3547:
------------------------------------
Summary: IndexOutOfBoundsException on directory with ~20
subdirectories
Key: DRILL-3547
URL: https://issues.apache.org/jira/browse/DRILL-3547
Project: Apache Drill
Issue Type: Bug
Components: Functions - Drill
Affects Versions: 1.1.0
Environment: RHEL 7
Reporter: Philip Deegan
Assignee: Daniel Barclay (Drill)
Tested on 1.1 with commit id:
{noformat}
0: jdbc:drill:zk=local> select commit_id from sys.version;
+-------------------------------------------+
| commit_id |
+-------------------------------------------+
| e3fc7e97bfe712dc09d43a8a055a5135c96b7344 |
+-------------------------------------------+
{noformat}
Directory has child directories "a" to "u", each contain json files.
Running the query on each subdirectory indivudually does not cause an error.
{noformat}
java.lang.RuntimeException: java.sql.SQLException: SYSTEM ERROR:
IndexOutOfBoundsException: index: 0, length: 1 (expected: range(0, 0))
Fragment 1:2
[Error Id: 69a0879f-f718-4930-ae6f-c526de05528c on
ip-172-31-29-60.eu-central-1.compute.internal:31010]
at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73)
at
sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:87)
at sqlline.TableOutputFormat.print(TableOutputFormat.java:118)
at sqlline.SqlLine.print(SqlLine.java:1583)
at sqlline.Commands.execute(Commands.java:852)
at sqlline.Commands.sql(Commands.java:751)
at sqlline.SqlLine.dispatch(SqlLine.java:738)
at sqlline.SqlLine.begin(SqlLine.java:612)
at sqlline.SqlLine.start(SqlLine.java:366)
at sqlline.SqlLine.main(SqlLine.java:259)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)