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 3D3F7DD6 for ; Thu, 28 Apr 2011 18:25:45 +0000 (UTC) Received: (qmail 60722 invoked by uid 500); 28 Apr 2011 18:25:45 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 60689 invoked by uid 500); 28 Apr 2011 18:25:45 -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 60680 invoked by uid 99); 28 Apr 2011 18:25:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2011 18:25:44 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of cboyden@pentaho.com does not designate 98.129.35.4 as permitted sender) Received: from [98.129.35.4] (HELO server505.appriver.com) (98.129.35.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2011 18:25:35 +0000 X-Note-AR-ScanTimeLocal: 4/28/2011 1:24:43 PM X-Policy: GLOBAL - UNKNOWN X-Primary: cboyden@pentaho.com X-Note: This Email was scanned by AppRiver SecureTide X-Virus-Scan: V- X-Note-SnifferID: 0 X-Note: TCH-CT/SI:0-165/SG:5 4/28/2011 1:24:40 PM X-GBUdb-Analysis: 0, 98.129.23.45, Ugly c=1 p=-0.583543 Source Normal X-Signature-Violations: 0-0-0-11550-c X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.45 X-Note-Reverse-DNS: smtp.exg5.exghost.com X-Note-WHTLIST: cboyden@pentaho.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G195 G196 G197 G198 G202 G203 G302 X-Note: Encrypt Rule Hits: X-Note: Mail Class: VALID X-Note: Headers Injected Received: from [98.129.23.45] (HELO smtp.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.3.13) with ESMTPS id 138353992 for dev@hive.apache.org; Thu, 28 Apr 2011 13:24:43 -0500 Received: from MBX16.exg5.exghost.com ([169.254.1.28]) by HT03.exg5.exghost.com ([10.242.228.75]) with mapi; Thu, 28 Apr 2011 13:25:14 -0500 From: Curtis Boyden To: "dev@hive.apache.org" Date: Thu, 28 Apr 2011 13:25:13 -0500 Subject: Hive's JDBC Driver version Thread-Topic: Hive's JDBC Driver version Thread-Index: AcwF0Z1n6q22fbukS+uSOWyimt7wFw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_DCCEDB00E6625C4C93407B65B524D10008DD6342MBX16exg5exghos_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_DCCEDB00E6625C4C93407B65B524D10008DD6342MBX16exg5exghos_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Hive People! I need to know what version of the Hive JDBC Driver I am wor= king with so that I know what to expect back for column names when I execut= e a Select statement. For example in 0.5.0 "SELECT account_id FROM account"= yields the column name "_col0" whereas in 0.6.0 the same query returns the= column name "account_id". My question regards the correct way to store the driver vers= ion information. I see in HiveDatabaseMetaData I see that getVersion() fetc= hes a full string from the manifest file while getDriverMajorVersion() and = getDriverMinorVersion() return a local, static 0. The HiveDriver also provi= des Driver version information through its methods getMajorVersion() and ge= tMinorVersion() and they both return static int 0 that are scoped to the cl= ass. I am primarily interested in the HiveDriver.get...Version() = methods as I do not want to create a DB connection first to check the Datab= aseMetaData, and my first thought is to update the MAJOR_VERSION/MINOR_VERS= ION values accordingly. Next I was going to change the ..._VERSION static i= nt values to be package visible and use them in HiveDatabaseMeta's getDrive= rMajorVersion()/getDriverMinorVersion(). The cost is that someone must manually update the static int= values on HiveDriver for each version revision. So I was wondering if it would be preferred that all version= information is pulled from the manifest file, or if I should move forward = with my usage of the HiveDriver static final ints. If the manifest version is to be used, should we create two = new fields for Major Version / Minor Version or parse the already existing = "Implementation-Version". Thank you for your direction, -Curtis --_000_DCCEDB00E6625C4C93407B65B524D10008DD6342MBX16exg5exghos_--