[ 
https://issues.apache.org/jira/browse/DRILL-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14493334#comment-14493334
 ] 

Rahul Challapalli commented on DRILL-2775:
------------------------------------------

My build is probably a week old. Let me try it out on master. Below is the 
error message from the logs
{code}
ERROR o.a.d.e.p.s.h.DefaultSqlHandler - Failed to create table 'jkdhfjhgjhk'
 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:635) ~[na:1.7.0_71]
        at java.util.ArrayList.get(ArrayList.java:411) ~[na:1.7.0_71]
        at 
org.apache.drill.exec.store.dfs.FileSelection.getFirstPath(FileSelection.java:99)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.store.dfs.BasicFormatMatcher.isReadable(BasicFormatMatcher.java:76)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.store.dfs.WorkspaceSchemaFactory.create(WorkspaceSchemaFactory.java:136)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.store.dfs.WorkspaceSchemaFactory.create(WorkspaceSchemaFactory.java:55)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.planner.sql.ExpandingConcurrentMap.getNewEntry(ExpandingConcurrentMap.java:96)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.planner.sql.ExpandingConcurrentMap.get(ExpandingConcurrentMap.java:90)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.store.dfs.WorkspaceSchemaFactory$WorkspaceSchema.getTable(WorkspaceSchemaFactory.java:249)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
net.hydromatic.optiq.jdbc.SimpleOptiqSchema.getTable(SimpleOptiqSchema.java:75) 
~[optiq-core-0.9-drill-r21.jar:na]
        at 
net.hydromatic.optiq.jdbc.OptiqSchema$SchemaPlusImpl.getTable(OptiqSchema.java:242)
 ~[optiq-core-0.9-drill-r21.jar:na]
        at 
org.apache.drill.exec.planner.sql.handlers.CreateTableHandler.getPlan(CreateTableHandler.java:103)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan(DrillSqlWorker.java:156)
 [drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:771) 
[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:203) 
[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[na:1.7.0_71]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[na:1.7.0_71]
        at java.lang.Thread.run(Thread.java:745)
{code}

> CTAS : Error message not clear when the table/folder already exists
> -------------------------------------------------------------------
>
>                 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
>
> 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. 



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

Reply via email to