Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDCD01836C for ; Wed, 9 Dec 2015 23:25:11 +0000 (UTC) Received: (qmail 4024 invoked by uid 500); 9 Dec 2015 23:25:11 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 3977 invoked by uid 500); 9 Dec 2015 23:25:11 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 3954 invoked by uid 99); 9 Dec 2015 23:25:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 23:25:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 15B1D2C1F5D for ; Wed, 9 Dec 2015 23:25:11 +0000 (UTC) Date: Wed, 9 Dec 2015 23:25:11 +0000 (UTC) From: "Shannon Ladymon (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-12184) DESCRIBE of fully qualified table fails when db and table name match and non-default database is in use MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-12184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15049616#comment-15049616 ] Shannon Ladymon commented on HIVE-12184: ---------------------------------------- [~ngangam], thanks for the info. Just a few more clarifications: (1) Can describe partition also accept specifications for the column field name, element, key, and value the way that describe table/view/column can? (2) What is the field name option? The wiki has brief descriptions of the other options, but that not that one. I like your idea of separating the two methods of specifying column (with DB and without) with a brief explanation. I'll make that change to both describe table/view/column and describe partition. > 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 > Fix For: 2.0.0 > > Attachments: HIVE-12184.10.patch, HIVE-12184.10.patch, HIVE-12184.2.patch, HIVE-12184.3.patch, HIVE-12184.4.patch, HIVE-12184.5.patch, HIVE-12184.6.patch, HIVE-12184.7.patch, HIVE-12184.8.patch, HIVE-12184.9.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)