You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org> on 2015/07/04 10:09:04 UTC
[jira] [Resolved] (PHOENIX-2064) ARRAY constructor doesn't work
when used in COUNT DISTINCT
[ https://issues.apache.org/jira/browse/PHOENIX-2064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ramkrishna.s.vasudevan resolved PHOENIX-2064.
---------------------------------------------
Resolution: Fixed
Fix Version/s: 4.5.0
4.4.0
Pushed to master, 4.x and 4.4 branches. Thanks for the patch [~Dumindux] and for the reviews [~giacomotaylor]
> ARRAY constructor doesn't work when used in COUNT DISTINCT
> ----------------------------------------------------------
>
> Key: PHOENIX-2064
> URL: https://issues.apache.org/jira/browse/PHOENIX-2064
> Project: Phoenix
> Issue Type: Bug
> Reporter: James Taylor
> Assignee: Dumindu Buddhika
> Fix For: 4.4.0, 4.5.0
>
> Attachments: PHOENIX-2064-v2.patch, PHOENIX-2064-v3.patch, PHOENIX-2064-v4.patch, PHOENIX-2064.patch
>
>
> As a workaround for PHOENIX-2062, I tried the following query:
> {code}
> SELECT COUNT(DISTINCT ARRAY[a.col1, b.col2]) ...
> {code}
> However, this always returns the full number of rows which is wrong.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)