Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7C239B91 for ; Wed, 18 Apr 2012 15:51:06 +0000 (UTC) Received: (qmail 42859 invoked by uid 500); 18 Apr 2012 15:51:06 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 42743 invoked by uid 500); 18 Apr 2012 15:51:06 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 42734 invoked by uid 99); 18 Apr 2012 15:51:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 15:51:06 +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; Wed, 18 Apr 2012 15:51:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 27E4F3A15E3 for ; Wed, 18 Apr 2012 15:50:42 +0000 (UTC) Date: Wed, 18 Apr 2012 15:50:42 +0000 (UTC) From: "Zhihong Yu (Assigned) (JIRA)" To: issues@hbase.apache.org Message-ID: <385772087.1270.1334764242164.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <354031820.968.1334758896784.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (HBASE-5821) Incorrect handling of null value in Coprocessor aggregation function min() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhihong Yu reassigned HBASE-5821: --------------------------------- Assignee: Maryann Xue > Incorrect handling of null value in Coprocessor aggregation function min() > -------------------------------------------------------------------------- > > Key: HBASE-5821 > URL: https://issues.apache.org/jira/browse/HBASE-5821 > Project: HBase > Issue Type: Bug > Components: coprocessors > Affects Versions: 0.92.1 > Reporter: Maryann Xue > Assignee: Maryann Xue > Attachments: HBASE-5821.patch > > > Both in AggregateImplementation and AggregationClient, the evaluation of the current minimum value is like: > min = (min == null || ci.compare(result, min) < 0) ? result : min; > The LongColumnInterpreter takes null value is treated as the least value, while the above expression takes min as the greater value when it is null. Thus, the real minimum value gets discarded if a null value comes later. > max() could also be wrong if a different ColumnInterpreter other than LongColumnInterpreter treats null value differently (as the greatest). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira