phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cody Marcel (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-3421) Column name lookups fail when on an indexed table
Date Thu, 03 Nov 2016 21:35:58 GMT


Cody Marcel commented on PHOENIX-3421:

PhoenixRuntime.getPkColsDataTypesForSql(pkColsList, dataTypesList, queryPlan, connection,
true). Unfortunately, clients calling the old method will need to be upgraded to call the
new API, which is not easily done. A better pattern for the API change is to deprecate this
method and add a new method for new code to reference. This give clients time to change their
behavior without having to back port API changes.

> Column name lookups fail when on an indexed table
> -------------------------------------------------
>                 Key: PHOENIX-3421
>                 URL:
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.8.0
>            Reporter: Cody Marcel
>            Assignee: James Taylor
>             Fix For: 4.9.0
>         Attachments: DebuggerWindow.png, PHOENIX-3421.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,
> PhoenixRuntime.encodeValues(connection, queryPlanTableName, objects , pkColsList);

This message was sent by Atlassian JIRA

View raw message