drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deneche A. Hakim (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-2775) message error not clear when doing a select or ctas on empty folder
Date Fri, 15 May 2015 22:13:01 GMT

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

Deneche A. Hakim updated DRILL-2775:
------------------------------------
    Description: 
if you have an empty folder "emptyfolder", you get a cryptic error message when you try to
query the folder or CTAS a table that has the same name of the empty folder:
{noformat}
0: jdbc:drill:zk=local> select * from emptyfolder;
Error: PARSE ERROR: Index: 0, Size: 0

[Error Id: ef86154b-8219-4b48-84bf-cb318f7d4ae4 on abdel-11.qa.lab:31010] (state=,code=0)
{noformat}

{noformat}
0: jdbc:drill:zk=local> create table emptyfolder as select * from `test.json`;
Error: SYSTEM ERROR: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

[Error Id: 1c3965f4-1566-4df6-9bb6-a91211771976 on abdel-11.qa.lab:31010] (state=,code=0)
{noformat}

  was:
git.commit.id.abbrev=f066786

Below is an example of what happens when we try to create the same table twice :
{code}
 create table  dfs.ctas_flatten.jkdhfjhgjhk as select  * from  `data.json`';
+------------+------------+
|     ok     |  summary   |
+------------+------------+
| false      | Error: Index: 0, Size: 0 |
{code}

It used to be more meaningful until very recently. 



> message error not clear when doing a select or ctas on empty folder
> -------------------------------------------------------------------
>
>                 Key: DRILL-2775
>                 URL: https://issues.apache.org/jira/browse/DRILL-2775
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Metadata
>            Reporter: Rahul Challapalli
>            Assignee: Deneche A. Hakim
>              Labels: error_message_must_fix
>             Fix For: 1.2.0
>
>
> if you have an empty folder "emptyfolder", you get a cryptic error message when you try
to query the folder or CTAS a table that has the same name of the empty folder:
> {noformat}
> 0: jdbc:drill:zk=local> select * from emptyfolder;
> Error: PARSE ERROR: Index: 0, Size: 0
> [Error Id: ef86154b-8219-4b48-84bf-cb318f7d4ae4 on abdel-11.qa.lab:31010] (state=,code=0)
> {noformat}
> {noformat}
> 0: jdbc:drill:zk=local> create table emptyfolder as select * from `test.json`;
> Error: SYSTEM ERROR: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> [Error Id: 1c3965f4-1566-4df6-9bb6-a91211771976 on abdel-11.qa.lab:31010] (state=,code=0)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message