You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2015/11/06 22:57:10 UTC

[jira] [Comment Edited] (HIVE-12184) DESCRIBE of fully qualified table fails when db and table name match and non-default database is in use

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

Xuefu Zhang edited comment on HIVE-12184 at 11/6/15 9:57 PM:
-------------------------------------------------------------

It was already supported prior to this change. I dint have to do anything specific with my change, except had to be mindful that the tree could contain other children for such usage.
There are existing unit tests that tested this behavior clientpositive/describe_xpath.q and clientnegative/describe_xpath{1..4}.q



was (Author: ngangam):
It was already supported prior to this change. I dint have to do anything specific with my change, except had to be mindful that the tree could contain other children for such usage.
There are existing unit tests that tested this behavior clientpositive/describe_xpath.q and clientnegative/describe{1..4}.q


> DESCRIBE of fully qualified table fails when db and table name match and non-default database is in use
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-12184
>                 URL: https://issues.apache.org/jira/browse/HIVE-12184
>             Project: Hive
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.2.1
>            Reporter: Lenni Kuff
>            Assignee: Naveen Gangam
>         Attachments: HIVE-12184.2.patch, HIVE-12184.3.patch, HIVE-12184.4.patch, HIVE-12184.patch
>
>
> DESCRIBE of fully qualified table fails when db and table name match and non-default database is in use.
> Repro:
> {code}
> : jdbc:hive2://localhost:10000/default> create database foo;
> No rows affected (0.116 seconds)
> 0: jdbc:hive2://localhost:10000/default> create table foo.foo(i int);
> 0: jdbc:hive2://localhost:10000/default> describe foo.foo;
> +-----------+------------+----------+--+
> | col_name  | data_type  | comment  |
> +-----------+------------+----------+--+
> | i         | int        |          |
> +-----------+------------+----------+--+
> 1 row selected (0.049 seconds)
> 0: jdbc:hive2://localhost:10000/default> use foo;
> 0: jdbc:hive2://localhost:10000/default> describe foo.foo;
> Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Error in getting fields from serde.Invalid Field foo (state=08S01,code=1)
> {code}



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