You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Vitalii Diravka (JIRA)" <ji...@apache.org> on 2018/12/06 17:13:00 UTC

[jira] [Resolved] (DRILL-3903) Querying empty directory yield internal index-out-of-bounds error

     [ https://issues.apache.org/jira/browse/DRILL-3903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitalii Diravka resolved DRILL-3903.
------------------------------------
    Resolution: Done
      Assignee: Vitalii Diravka

It was solved in scope of DRILL-5546 and DRILL-4185.
{code:java}
0: jdbc:drill:zk=local> use dfs.tmp;
+-------+--------------------------------------+
|  ok   |               summary                |
+-------+--------------------------------------+
| true  | Default schema changed to [dfs.tmp]  |
+-------+--------------------------------------+
1 row selected (0.099 seconds)
0: jdbc:drill:zk=local> select * from `emptyfolder`;
+--+
|  |
+--+
+--+
No rows selected (1.75 seconds)
{code}
Starting form Drill 1.13 the empty directory is a Drill schemaless table, see more:
 [https://drill.apache.org/docs/data-sources-and-file-formats-introduction/#schemaless-tables]

> Querying empty directory yield internal index-out-of-bounds error
> -----------------------------------------------------------------
>
>                 Key: DRILL-3903
>                 URL: https://issues.apache.org/jira/browse/DRILL-3903
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Other
>            Reporter: Daniel Barclay
>            Assignee: Vitalii Diravka
>            Priority: Major
>             Fix For: 1.13.0
>
>
> Trying to use an empty directory as a table results in an internal IndexOutOfBounds error:
> {noformat}
> 0: jdbc:drill:zk=localhost:2181> SELECT *   FROM `dfs`.`root`.`/tmp/empty_directory`;
> Error: VALIDATION ERROR: Index: 0, Size: 0
> [Error Id: 66ff61ed-ea41-4af9-87c5-f91480ef1b21 on dev-linux2:31010] (state=,code=0)
> 0: jdbc:drill:zk=localhost:2181> 
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)