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 2015/02/10 21:22:12 UTC
[jira] [Resolved] (PHOENIX-988) The result is not expected when
select case when case
[ https://issues.apache.org/jira/browse/PHOENIX-988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Taylor resolved PHOENIX-988.
----------------------------------
Resolution: Cannot Reproduce
Fix Version/s: (was: 3.1)
No activity, so closing
> The result is not expected when select case when case
> -----------------------------------------------------
>
> Key: PHOENIX-988
> URL: https://issues.apache.org/jira/browse/PHOENIX-988
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: jay wong
> Attachments: PHOENIX-988.patch
>
>
> A table :
> select count( int_column_a ) count from table1 where int_column_a<10;
> | COUNT |
> | 0 |
> then select with sql :
> select count( distinct case when int_column_a<10 then 2 else null end ) count from table1;
> the expected reuslt is 0. but 1 we got.
> As the CaseExcression#evaluate doesn't handle the case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)