Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B4B5A200BCE for ; Fri, 2 Dec 2016 17:05:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B21A5160B27; Fri, 2 Dec 2016 16:05:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 38706160B08 for ; Fri, 2 Dec 2016 17:05:59 +0100 (CET) Received: (qmail 19638 invoked by uid 500); 2 Dec 2016 16:05:58 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 19622 invoked by uid 99); 2 Dec 2016 16:05:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2016 16:05:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 58AFA2C03DC for ; Fri, 2 Dec 2016 16:05:58 +0000 (UTC) Date: Fri, 2 Dec 2016 16:05:58 +0000 (UTC) From: "Zelaine Fong (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-5094) Assure Comparator to be transitive MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Dec 2016 16:05:59 -0000 [ https://issues.apache.org/jira/browse/DRILL-5094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zelaine Fong updated DRILL-5094: -------------------------------- Labels: ready-to-commit (was: ) > Assure Comparator to be transitive > ---------------------------------- > > Key: DRILL-5094 > URL: https://issues.apache.org/jira/browse/DRILL-5094 > Project: Apache Drill > Issue Type: Bug > Reporter: Chunhui Shi > Assignee: Chunhui Shi > Priority: Critical > Labels: ready-to-commit > > In AssignmentCreator.java, one Comparator could break transitive attribute required for a Comparator implementation and the result is not correct. > E.g. for: > long IntPlusOne = 0x80000000L; > [0]=2 * IntPlusOne + 5, [1] = 2* IntPlusOne + 8, [2] = 4 * IntPlusOne + 4, > the compare results will be like: > compare([0],[1]) = -3, > compare([1],[2]) = 4, > compare([0],[2]) = 1 -- This message was sent by Atlassian JIRA (v6.3.4#6332)