You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2016/02/18 05:56:18 UTC

[jira] [Updated] (PHOENIX-2689) VARCHAR Field Not Working With String Concatenation

     [ https://issues.apache.org/jira/browse/PHOENIX-2689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Taylor updated PHOENIX-2689:
----------------------------------
    Attachment: PHOENIX-2689.patch

Please review, [~tdsilva]. Also, would you mind making a pass through all Expression.evaluate methods for similar issues? We should never ignore and continue if a child cannot be evaluated, but instead we should return false (which means "we don't have enough information to give an answer yet"). The reason is that during server-side evaluation, we see one KeyValue at a time, so until we've seen all of them, we cannot give a definite answer.

> VARCHAR Field Not Working With String Concatenation
> ---------------------------------------------------
>
>                 Key: PHOENIX-2689
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2689
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.6.0
>            Reporter: Steve T
>            Priority: Minor
>             Fix For: 4.7.0
>
>         Attachments: PHOENIX-2689.patch
>
>
> Set up:
> {code:sql}
> create table BUGGY (PK1 integer, F1 varchar, F2 varchar, constraint PK primary key (PK1));
> upsert into BUGGY values(0, 'tortilla', 'chip');
> {code}
> This works as expected:
> {code:sql}
> select * from BUGGY where ('tortilla'||F2)='tortilla chip';
> PK1  0
> F1   tortilla
> F2   chip
> {code}
> But this does not:
> {code:sql}
> select * from BUGGY where (F1||F2)='tortilla chip';
> No rows selected (0.01 seconds)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)