From dev-return-49957-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Wed Mar 7 23:33:04 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 91686180656 for ; Wed, 7 Mar 2018 23:33:03 +0100 (CET) Received: (qmail 9976 invoked by uid 500); 7 Mar 2018 22:33:02 -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 9965 invoked by uid 99); 7 Mar 2018 22:33:02 -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 Mar 2018 22:33:02 +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 E729C1A0924 for ; Wed, 7 Mar 2018 22:33:01 +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-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id v2xHvwWCOYnN for ; Wed, 7 Mar 2018 22:33:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DC7F85F2EC for ; Wed, 7 Mar 2018 22:33:00 +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 5EFEFE012D for ; Wed, 7 Mar 2018 22:33: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 180ED253FE for ; Wed, 7 Mar 2018 22:33:00 +0000 (UTC) Date: Wed, 7 Mar 2018 22:33:00 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-4634) Looking up a parent index table of a tenant child view fails in BaseColumnResolver createTableRef() 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-4634?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Taylor updated PHOENIX-4634: ---------------------------------- Fix Version/s: 4.14.0 > Looking up a parent index table of a tenant child view fails in BaseColum= nResolver createTableRef() > -------------------------------------------------------------------------= -------------------------- > > Key: PHOENIX-4634 > URL: https://issues.apache.org/jira/browse/PHOENIX-4634 > Project: Phoenix > Issue Type: Bug > Reporter: Thomas D'Silva > Assignee: Thomas D'Silva > Priority: Major > Fix For: 4.14.0 > > Attachments: PHOENIX-4634-4.x-HBase-0.98.patch, PHOENIX-4634-v2.p= atch > > > If we are looking up a parent table index of a child view , we need to re= solve the view which will load the parent table indexes (instead of trying = to resolve the parent table index directly).=C2=A0 > =C2=A0 > {code:java} > org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Tab= le undefined. tableName=3DSchema.Schema.Index#Schma.View > org.apache.phoenix.compile.FromCompiler$BaseColumnResolver.createTableRef= (FromCompiler.java:577) > at org.apache.phoenix.compile.FromCompiler$SingleTableColumnResolver.(FromCompiler.java:391) > at org.apache.phoenix.compile.FromCompiler.getResolverForQuery(FromCompil= er.java:228) > at org.apache.phoenix.compile.FromCompiler.getResolverForQuery(FromCompil= er.java:206) > at org.apache.phoenix.optimize.QueryOptimizer.addPlan(QueryOptimizer.java= :226) > at org.apache.phoenix.optimize.QueryOptimizer.getApplicablePlans(QueryOpt= imizer.java:146) > at org.apache.phoenix.optimize.QueryOptimizer.getApplicablePlans(QueryOpt= imizer.java:103) > at org.apache.phoenix.compile.DeleteCompiler.compile(DeleteCompiler.java:= 501) > at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDeleteStatement.com= pilePlan(PhoenixStatement.java:770) > at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDeleteStatement.com= pilePlan(PhoenixStatement.java:758) > at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:= 386) > at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:= 376) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)