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

Venki Korukanti commented on DRILL-2775:
----------------------------------------

Problem is when CTAS is trying to check if the table with given name already 
exists, we fail because the table directory has no files. Should get an error 
when we try to select from empty directory. I think it is good to improve the 
error msg when we fail to check for existence of table with same as one we are 
trying to create.

> 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