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 BAF79108F7 for ; Thu, 16 Jan 2014 17:46:31 +0000 (UTC) Received: (qmail 83035 invoked by uid 500); 16 Jan 2014 17:46:21 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 82970 invoked by uid 500); 16 Jan 2014 17:46:20 -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 82960 invoked by uid 500); 16 Jan 2014 17:46:20 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 82954 invoked by uid 99); 16 Jan 2014 17:46:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2014 17:46:20 +0000 Date: Thu, 16 Jan 2014 17:46:20 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4519) JDBC getColumnTypeName() should respond with the Hive-specifc type name for ARRAY, STRUCT and MAP 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-4519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13873653#comment-13873653 ] Ashutosh Chauhan commented on HIVE-4519: ---------------------------------------- +1 Looks like Hive QA didn't trigger. > JDBC getColumnTypeName() should respond with the Hive-specifc type name for ARRAY, STRUCT and MAP > ------------------------------------------------------------------------------------------------- > > Key: HIVE-4519 > URL: https://issues.apache.org/jira/browse/HIVE-4519 > Project: Hive > Issue Type: Bug > Components: JDBC > Affects Versions: 0.11.0 > Reporter: Robert Roland > Assignee: Robert Roland > Attachments: HIVE-4519.1.patch.txt, HIVE-4519.2.patch.txt, HIVE-4519.3.patch.txt > > > Per the Javadocs for ResultSetMetaData#getColumnTypeName(): > "type name used by the database. If the column type is a user-defined type, then a fully-qualified type name is returned." > Hive's type for array, struct and map is not String. It is array, struct or map, using a JSON string serialization. Returning the Hive type here will allow you to programmatically determine if you should parse the value in the ResultSet as JSON. > ResultSetMetaData#getColumnType() should potentially return OTHER to indicate the column is a database-specific return type. > This would replace the fix provided HIVE-1378. -- This message was sent by Atlassian JIRA (v6.1.5#6160)