From dev-return-50059-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Sat Mar 10 23:30: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 152E9180651 for ; Sat, 10 Mar 2018 23:30:05 +0100 (CET) Received: (qmail 42856 invoked by uid 500); 10 Mar 2018 22:30:05 -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 42845 invoked by uid 99); 10 Mar 2018 22:30:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2018 22:30:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3FFC3180046 for ; Sat, 10 Mar 2018 22:30:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Jg3Q9edHnhVu for ; Sat, 10 Mar 2018 22:30:03 +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 4F9855F30B for ; Sat, 10 Mar 2018 22:30: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 28809E023A for ; Sat, 10 Mar 2018 22:30: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 707ED2145E for ; Sat, 10 Mar 2018 22:30:00 +0000 (UTC) Date: Sat, 10 Mar 2018 22:30:00 +0000 (UTC) From: "Thomas D'Silva (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 ] Thomas D'Silva updated PHOENIX-4634: ------------------------------------ Attachment: PHOENIX-4634-v5.patch > 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, PHOENIX-4634-v3.patch, PHOENIX-4634-v4.patch, PHOENIX-4634-v5.patch > > > 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)