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 138FE109D1 for ; Tue, 30 Jul 2013 21:19:49 +0000 (UTC) Received: (qmail 4706 invoked by uid 500); 30 Jul 2013 21:19:48 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 4662 invoked by uid 500); 30 Jul 2013 21:19:48 -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 4654 invoked by uid 500); 30 Jul 2013 21:19:48 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 4651 invoked by uid 99); 30 Jul 2013 21:19:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 21:19:48 +0000 Date: Tue, 30 Jul 2013 21:19:48 +0000 (UTC) From: "Yin Huai (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4960) lastAlias in CommonJoinOperator is not used 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-4960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yin Huai updated HIVE-4960: --------------------------- Status: Patch Available (was: Open) > lastAlias in CommonJoinOperator is not used > ------------------------------------------- > > Key: HIVE-4960 > URL: https://issues.apache.org/jira/browse/HIVE-4960 > Project: Hive > Issue Type: Improvement > Reporter: Yin Huai > Assignee: Yin Huai > Priority: Minor > Attachments: HIVE-4960.D11895.1.patch > > > In CommonJoinOperator, there is object called lastAlias. The initial value of this object is 'null'. After tracing the usage of this object, I found that there is no place to change the value of this object. Also, it is only used in processOp in JoinOperator and MapJoinOperator as > {code} > if ((lastAlias == null) || (!lastAlias.equals(alias))) { > nextSz = joinEmitInterval; > } > {\code} > Since lastAlias will always be null, we will assign joinEmitInterval to nextSz every time we get a row. Later in processOp, we have > {code} > nextSz = getNextSize(nextSz); > {\code} > Because we reset the value of nextSz to joinEmitInterval every time we get a row, seems that getNextSize will not be used as expected. -- 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