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 591E91029F for ; Sun, 11 Aug 2013 13:48:54 +0000 (UTC) Received: (qmail 57227 invoked by uid 500); 11 Aug 2013 13:48:53 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 57159 invoked by uid 500); 11 Aug 2013 13:48: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 57151 invoked by uid 500); 11 Aug 2013 13:48:49 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 57140 invoked by uid 99); 11 Aug 2013 13:48:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Aug 2013 13:48:48 +0000 Date: Sun, 11 Aug 2013 13:48:48 +0000 (UTC) From: "Chen Chun (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5056) MapJoinProcessor ignores order of values in removing RS 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-5056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736276#comment-13736276 ] Chen Chun commented on HIVE-5056: --------------------------------- Hi, [~navis]. I and [~wzc1989] finally find the problem after a week of seeking. Since "deal".hashCode()%16=12, "dim_pay_date".hashCode()%16=12, in SemanticAnalyzer#genJoinOperatorChildren, we put "deal", "dim_pay_date" in hash map in sequence, however in MapJoinProcessor#convertMapJoin, we put "dim_pay_date", "deal" in hash map in sequence. And because of hash collision, the traversal order is related to the order of elements putting in the hashmap and result in bug. > MapJoinProcessor ignores order of values in removing RS > ------------------------------------------------------- > > Key: HIVE-5056 > URL: https://issues.apache.org/jira/browse/HIVE-5056 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Navis > Assignee: Navis > Attachments: HIVE-5056.D12147.1.patch > > > http://www.mail-archive.com/user@hive.apache.org/msg09073.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira