You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Venki Korukanti (JIRA)" <ji...@apache.org> on 2015/04/14 02:10:12 UTC

[jira] [Commented] (DRILL-2775) CTAS : Error message not clear when the table/folder already exists

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

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

Just tried on 08236fa. Seems to be working fine. Is there any more info to repro or logs?

{code}
0: jdbc:drill:zk=local> use dfs.tmp;
+------------+------------+
|     ok     |  summary   |
+------------+------------+
| true       | Default schema changed to 'dfs.tmp' |
+------------+------------+
1 row selected (2.015 seconds)
0: jdbc:drill:zk=local> create table jkdhfjhgjhk as select  * from cp.`region.json`;
+------------+---------------------------+
|  Fragment  | Number of records written |
+------------+---------------------------+
| 0_0        | 110                       |
+------------+---------------------------+
1 row selected (2.943 seconds)
0: jdbc:drill:zk=local> create table jkdhfjhgjhk as select  * from cp.`region.json`;
+------------+------------+
|     ok     |  summary   |
+------------+------------+
| false      | Table 'jkdhfjhgjhk' already exists. |
+------------+------------+
1 row selected (0.135 seconds)
0: jdbc:drill:zk=local> create table dfs.tmp.jkdhfjhgjhk as select  * from cp.`region.json`;
+------------+------------+
|     ok     |  summary   |
+------------+------------+
| false      | Table 'jkdhfjhgjhk' already exists. |
+------------+------------+
1 row selected (0.155 seconds)
{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)