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 D971210161 for ; Mon, 24 Mar 2014 04:43:55 +0000 (UTC) Received: (qmail 8462 invoked by uid 500); 24 Mar 2014 04:43:51 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 8286 invoked by uid 500); 24 Mar 2014 04:43:50 -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 7538 invoked by uid 500); 24 Mar 2014 04:43:47 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 7528 invoked by uid 99); 24 Mar 2014 04:43:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2014 04:43:46 +0000 Date: Mon, 24 Mar 2014 04:43:46 +0000 (UTC) From: "Laljo John Pullokkaran (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6687) JDBC ResultSet fails to get value by qualified projection name 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-6687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laljo John Pullokkaran updated HIVE-6687: ----------------------------------------- Attachment: HIVE-6687.4.patch > JDBC ResultSet fails to get value by qualified projection name > -------------------------------------------------------------- > > Key: HIVE-6687 > URL: https://issues.apache.org/jira/browse/HIVE-6687 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 0.12.0 > Reporter: Laljo John Pullokkaran > Assignee: Laljo John Pullokkaran > Labels: documentation > Fix For: 0.12.1 > > Attachments: HIVE-6687.4.patch > > > Getting value from result set using fully qualified name would throw exception. Only solution today is to use position of the column as opposed to column label. > {code} > String sql = "select r1.x, r2.x from r1 join r2 on r1.y=r2.y"; > ResultSet res = stmt.executeQuery(sql); > res.getInt("r1.x"); > {code} > res.getInt("r1.x"); would throw exception unknown column even though sql specifies it. > Fix is to fix resultsetschema in semantic analyzer. -- This message was sent by Atlassian JIRA (v6.2#6252)