From dev-return-61025-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Wed May 6 20:57:02 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E3959180665 for ; Wed, 6 May 2020 22:57:01 +0200 (CEST) Received: (qmail 9618 invoked by uid 500); 6 May 2020 20:57:01 -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 9591 invoked by uid 99); 6 May 2020 20:57:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2020 20:57:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 907FFE2569 for ; Wed, 6 May 2020 20:57:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 0A25078019B for ; Wed, 6 May 2020 20:57:00 +0000 (UTC) Date: Wed, 6 May 2020 20:57:00 +0000 (UTC) From: "Daniel Wong (Jira)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PHOENIX-5885) Tighten Scan Boundary for keys with RVC and Trailing Edges MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Daniel Wong created PHOENIX-5885: ------------------------------------ Summary: Tighten Scan Boundary for keys with RVC and Trailing = Edges Key: PHOENIX-5885 URL: https://issues.apache.org/jira/browse/PHOENIX-5885 Project: Phoenix Issue Type: Improvement Reporter: Daniel Wong https://issues.apache.org/jira/browse/PHOENIX-5833=C2=A0found that there we= re test cases in WhereOptimizerTest.java where the scan boundary was tighte= r due to a code error.=C2=A0 Specifically the query: CREATE TABLE T (A CHAR(1) NOT NULL, B CHAR(1) NOT NULL, C CHAR(1) NOT NULL,= D CHAR(1) NOT NULL=C2=A0CONSTRAINT PK PRIMARY KEY ( A, B, C, D)) =C2=A0 SELECT * FROM T WHERE A =3D 'C' and (A,B,C) > ('C','B','X') and C=3D'C' Optimal Scan Boundary is: ['CCC' - *) This is because we know due to key space C cannot be 'C' until after all of= the keys leading with prefix 'C','B'=C2=A0 =C2=A0 With fix being moved forward on in PHOENIX-5833 we generate the scan bounda= ry of: ['CBC' - *) That is a more involved fix that this Jira will handle. =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)