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 462E54DB2 for ; Fri, 10 Jun 2011 11:55:20 +0000 (UTC) Received: (qmail 79084 invoked by uid 500); 10 Jun 2011 11:55:20 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 79046 invoked by uid 500); 10 Jun 2011 11:55: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 79034 invoked by uid 500); 10 Jun 2011 11:55:19 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 79031 invoked by uid 99); 10 Jun 2011 11:55:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 11:55:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 11:55:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id ED54510CC9C for ; Fri, 10 Jun 2011 11:54:58 +0000 (UTC) Date: Fri, 10 Jun 2011 11:54:58 +0000 (UTC) From: "Krishna Kumar (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <2086705902.10365.1307706898968.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1416918617.6189.1307610718794.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2209) Provide a way by which ObjectInspectorUtils.compare can be extended by the caller for comparing maps which are part of the object 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-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Krishna Kumar updated HIVE-2209: -------------------------------- Attachment: HIVE-2209v0.patch Patch, with tests, added. > Provide a way by which ObjectInspectorUtils.compare can be extended by the caller for comparing maps which are part of the object > --------------------------------------------------------------------------------------------------------------------------------- > > Key: HIVE-2209 > URL: https://issues.apache.org/jira/browse/HIVE-2209 > Project: Hive > Issue Type: Improvement > Reporter: Krishna Kumar > Assignee: Krishna Kumar > Priority: Minor > Attachments: HIVE-2209v0.patch > > > Now ObjectInspectorUtils.compare throws an exception if a map is contained (recursively) within the objects being compared. Two obvious implementations are > - a simple map comparer which assumes keys of the first map can be used to fetch values from the second > - a 'cross-product' comparer which compares every pair of key-value pairs in the two maps, and calls a match if and only if all pairs are matched > Note that it would be difficult to provide a transitive greater-than/less-than indication with maps so that is not in scope. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira