From dev-return-49187-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Wed Feb 7 11:49:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 5663E18065B for ; Wed, 7 Feb 2018 11:49:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 462D8160C5B; Wed, 7 Feb 2018 10:49:05 +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 8D008160C3C for ; Wed, 7 Feb 2018 11:49:04 +0100 (CET) Received: (qmail 93351 invoked by uid 500); 7 Feb 2018 10:49:03 -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 93338 invoked by uid 99); 7 Feb 2018 10:49:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2018 10:49:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4267C1A0496 for ; Wed, 7 Feb 2018 10:49:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id IGNKjf7sp3K4 for ; Wed, 7 Feb 2018 10:49:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B766E5F5B3 for ; Wed, 7 Feb 2018 10:49:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D00B7E0230 for ; Wed, 7 Feb 2018 10:49:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 39124240F6 for ; Wed, 7 Feb 2018 10:49:00 +0000 (UTC) Date: Wed, 7 Feb 2018 10:49:00 +0000 (UTC) From: "Ankit Singhal (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-4546) Projected table cannot be read through ProjectedColumnExpression MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-4546?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 355304#comment-16355304 ]=20 Ankit Singhal commented on PHOENIX-4546: ---------------------------------------- {quote}Is this an issue for 4.x too?=C2=A0 {quote} =C2=A0yes, this is an issue with 4.x too {quote}Is it specific to local indexes? {quote} No, it is not specific to local indexes, this is observed when deleting dat= a from an Immutable table having multiple immutable indexes. During delete, maintenance of immutable indexes at client executes a select= query by adding all columns involved in all immutable indexes and projecte= d table is created out of it, KeyValue schema will be built considering the= order of columns in projected=C2=A0table=C2=A0but TupleProjectorCompiler d= oesn't maintain the order as per the SELECT projection, result in wrong Pro= jectedColumnExpression used in IndexMaintainers to read the value of the co= lumns.=C2=A0 This is observed in this case only because others use RowProjector which ta= ke care of indexes of the columns correctly and use the right ProjectedColu= mnExpression. =C2=A0 > Projected table cannot be read through ProjectedColumnExpression > ---------------------------------------------------------------- > > Key: PHOENIX-4546 > URL: https://issues.apache.org/jira/browse/PHOENIX-4546 > Project: Phoenix > Issue Type: Bug > Reporter: Romil Choksi > Assignee: Ankit Singhal > Priority: Major > Fix For: 5.0.0, 4.14.0 > > Attachments: PHOENIX-4546.patch, PHOENIX-4546_v1.patch, PHOENIX-4= 546_v2.patch, PHOENIX-4546_v3.patch > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)