Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22E518771 for ; Mon, 8 Aug 2011 16:58:50 +0000 (UTC) Received: (qmail 21460 invoked by uid 500); 8 Aug 2011 16:58:49 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 21402 invoked by uid 500); 8 Aug 2011 16:58:49 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 21389 invoked by uid 500); 8 Aug 2011 16:58:49 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 21385 invoked by uid 99); 8 Aug 2011 16:58:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 16:58:49 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 16:58:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5B995B2463 for ; Mon, 8 Aug 2011 16:58:27 +0000 (UTC) Date: Mon, 8 Aug 2011 16:58:27 +0000 (UTC) From: "Patrick Hunt (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1079632664.17008.1312822707372.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <338078591.12553.1311785289766.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2315) DatabaseMetadata.getColumns() does not return partition column names for a table 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-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081056#comment-13081056 ] Patrick Hunt commented on HIVE-2315: ------------------------------------ Hi Mythili can you give an example of the query you are running? i.e. steps how to reproduce. When I run the following from hive: {noformat} create table foo2 (a string, b string, c string) partitioned by (dt string) row format delimited fields terminated by '\t'; load data local inpath './data.txt' overwrite into table foo2 partition (dt='8'); load data local inpath './data.txt' overwrite into table foo2 partition (dt='9'); select * from foo2; {noformat} I see dt in the output (hive cli). When I run "select * from foo2" from Squirrel I also see dt in the output after applying this patch (I also see dt in the metadata reported by Squirrel for the table). > DatabaseMetadata.getColumns() does not return partition column names for a table > -------------------------------------------------------------------------------- > > Key: HIVE-2315 > URL: https://issues.apache.org/jira/browse/HIVE-2315 > Project: Hive > Issue Type: Bug > Components: JDBC > Affects Versions: 0.7.1 > Reporter: Mythili Gopalakrishnan > Assignee: Patrick Hunt > Priority: Critical > Fix For: 0.8.0 > > Attachments: HIVE-2315.patch > > > getColumns() method of DatabaseMetadata for HIVE JDBC Driver does not return the partition column names. Where as from HIVE CLI, if you do a 'describe tablename' you get all columns including the partition columns. It would be nice if getColumns() method returns all columns. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira