Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 51907 invoked from network); 8 Jun 2010 23:15:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jun 2010 23:15:37 -0000 Received: (qmail 3096 invoked by uid 500); 8 Jun 2010 23:15:37 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 3069 invoked by uid 500); 8 Jun 2010 23:15:37 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 3061 invoked by uid 99); 8 Jun 2010 23:15:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 23:15:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 23:15:35 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o58NFECX006529 for ; Tue, 8 Jun 2010 23:15:14 GMT Message-ID: <3036110.35941276038914145.JavaMail.jira@thor> Date: Tue, 8 Jun 2010 19:15:14 -0400 (EDT) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-559) Support JDBC ResultSetMetadata In-Reply-To: <1026017401.1244831167386.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-559: -------------------------------- Component/s: Drivers (was: Clients) > Support JDBC ResultSetMetadata > ------------------------------ > > Key: HIVE-559 > URL: https://issues.apache.org/jira/browse/HIVE-559 > Project: Hadoop Hive > Issue Type: Sub-task > Components: Drivers > Affects Versions: 0.5.0 > Reporter: Bill Graham > Assignee: Min Zhou > > Support ResultSetMetadata for JDBC ResultSets. The getColumn* methods would be particularly useful I'd expect: > http://java.sun.com/javase/6/docs/api/java/sql/ResultSetMetaData.html > The challenge as I see it though, is that the JDBC client only has access to the raw query string and the result data when running in standalone mode. Therefore, it will need to get the column metadata one of two way: > 1. By parsing the query to determine the tables/columns involved and then making a request to the metastore to get the metadata for the columns. This certainly feels like duplicate work, since the query of course gets properly parsed on the server. > 2. By returning the column metadata from the server. My thrift knowledge is limited, but I suspect adding this to the response would present other challenges. > Any thoughts or suggestions? Option #1 feels clunkier, yet safer. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.