From dev-return-49818-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Thu Mar 1 23:01:06 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 70E9918067A for ; Thu, 1 Mar 2018 23:01:05 +0100 (CET) Received: (qmail 60138 invoked by uid 500); 1 Mar 2018 22:01:04 -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 60078 invoked by uid 99); 1 Mar 2018 22:01:04 -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; Thu, 01 Mar 2018 22:01:04 +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 3A80F1A09BA for ; Thu, 1 Mar 2018 22:01: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-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 SmR7eg9_ah0s for ; Thu, 1 Mar 2018 22:01:02 +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 0BC835F340 for ; Thu, 1 Mar 2018 22:01:02 +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 A37A8E00A7 for ; Thu, 1 Mar 2018 22:01:01 +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 3A95624766 for ; Thu, 1 Mar 2018 22:01:00 +0000 (UTC) Date: Thu, 1 Mar 2018 22:01:00 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 382724#comment-16382724 ]=20 James Taylor commented on PHOENIX-4634: --------------------------------------- Yes, that sounds like the right solution to me. > 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 > Priority: Major > > 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)