Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 208FE200BB6 for ; Fri, 4 Nov 2016 18:13:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1F2B2160B0F; Fri, 4 Nov 2016 17:13:01 +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 97D4B160B04 for ; Fri, 4 Nov 2016 18:13:00 +0100 (CET) Received: (qmail 158 invoked by uid 500); 4 Nov 2016 17:12:59 -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 99864 invoked by uid 99); 4 Nov 2016 17:12:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 17:12:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 350892C0057 for ; Fri, 4 Nov 2016 17:12:59 +0000 (UTC) Date: Fri, 4 Nov 2016 17:12:59 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3421) Column name lookups fail when on an indexed table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Nov 2016 17:13:01 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15637042#comment-15637042 ] Lars Hofhansl commented on PHOENIX-3421: ---------------------------------------- OK... Changed the affected version to 4.9.0. (Let's try to do that, so we can gauge whether we need to backport stuff) > Column name lookups fail when on an indexed table > ------------------------------------------------- > > Key: PHOENIX-3421 > URL: https://issues.apache.org/jira/browse/PHOENIX-3421 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.9.0 > Reporter: Cody Marcel > Assignee: James Taylor > Fix For: 4.9.0 > > Attachments: DebuggerWindow.png, PHOENIX-3421.patch, PHOENIX-3421_addendum1.patch > > > Using an index the lookup for encoded values fails. > This happens on tables when using an index. > The conflict is essentially between the two methods below. The pkColsList create by getPkColsDataTypesForSql() returns column names without a ":", but the encodeValues() method does a lookup on PTable for the column and cannot find it. > PhoenixRuntime.getPkColsDataTypesForSql(pkColsList, dataTypesList, queryPlan, connection, true); > PhoenixRuntime.encodeValues(connection, queryPlanTableName, objects , pkColsList); -- This message was sent by Atlassian JIRA (v6.3.4#6332)