Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 790EA17A22 for ; Tue, 11 Aug 2015 01:28:54 +0000 (UTC) Received: (qmail 3397 invoked by uid 500); 11 Aug 2015 01:28:49 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 3344 invoked by uid 500); 11 Aug 2015 01:28:49 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 3333 invoked by uid 99); 11 Aug 2015 01:28:49 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2015 01:28:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DD285C12D8 for ; Tue, 11 Aug 2015 01:28:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.97 X-Spam-Level: X-Spam-Status: No, score=0.97 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id PFKNxt8r-iUm for ; Tue, 11 Aug 2015 01:28:48 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 363C220FE7 for ; Tue, 11 Aug 2015 01:28:47 +0000 (UTC) Received: (qmail 2924 invoked by uid 99); 11 Aug 2015 01:28:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2015 01:28:46 +0000 Date: Tue, 11 Aug 2015 01:28:45 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-2137) Range query on DECIMAL DESC sometimes incorrect 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/PHOENIX-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Taylor updated PHOENIX-2137: ---------------------------------- Attachment: PHOENIX-2137_v2.patch Final patch with more testing. Please review, [~samarthjain] - I'd like to get this into a patch release very soon so we can put these descending row key bugs behind us. > Range query on DECIMAL DESC sometimes incorrect > ----------------------------------------------- > > Key: PHOENIX-2137 > URL: https://issues.apache.org/jira/browse/PHOENIX-2137 > Project: Phoenix > Issue Type: Bug > Reporter: James Taylor > Assignee: James Taylor > Attachments: PHOENIX-2137.patch, PHOENIX-2137_v2.patch, PHOENIX-2137_wip.patch > > > The following scenario is not working correctly: > {code} > create table t (k1 bigint not null, k2 decimal, constraint pk primary key (k1,k2 desc)); > upsert into t values(1,1.01); > upsert into t values(2,1.001); > select * from t where k2>1.0; -- No rows, but should be both rows > select * from t where k1 in (1,2) and k2>1.0; -- Same problem > {code} > The following queries do return the correct results: > {code} > select * from t where k2>1.0001; > select * from t where k1 in (1,2) and k2>1.0001; > {code} > Note also that without the DESC declaration of k2, everything works fine. -- This message was sent by Atlassian JIRA (v6.3.4#6332)