Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D4981890B for ; Fri, 17 Jul 2015 15:59:14 +0000 (UTC) Received: (qmail 25411 invoked by uid 500); 17 Jul 2015 15:59:14 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 25263 invoked by uid 500); 17 Jul 2015 15:59:14 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 25250 invoked by uid 99); 17 Jul 2015 15:59:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2015 15:59:14 +0000 Date: Fri, 17 Jul 2015 15:59:13 +0000 (UTC) From: "Chaoyu Tang (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-11288) Avro SerDe InstanceCache returns incorrect schema 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-11288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14631508#comment-14631508 ] Chaoyu Tang commented on HIVE-11288: ------------------------------------ [~gphillips] Could you take a look at the failed test org.apache.hadoop.hive.serde2.avro.TestInstanceCache.instanceCachesOnlyCreateOneInstance? is it related to patch? > Avro SerDe InstanceCache returns incorrect schema > ------------------------------------------------- > > Key: HIVE-11288 > URL: https://issues.apache.org/jira/browse/HIVE-11288 > Project: Hive > Issue Type: Bug > Reporter: Greg Phillips > Attachments: HIVE-11288.patch > > > To reproduce this error, take two fields in an avro schema document matching the following: > "type" : { "type": "array", "items": [ "null", { "type": "map", "values": [ "null", "string" ] } ] } > "type" : { "type": "map", "values": [ "null" , { "type": "array", "items": [ "null" , "string"] } ] } > After creating two tables in hive with these schemas, the describe statement on each of them will only return the schema for the first one loaded. This is due to a hashCode() collision in the InstanceCache. > A patch will be included in this ticket shortly which removes the hashCode call from the InstanceCache's internal HashMap, and instead provides the entire schema object. -- This message was sent by Atlassian JIRA (v6.3.4#6332)