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/06/24 03:35:45 UTC
[jira] [Updated] (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 ]
James Taylor updated PHOENIX-2064:
----------------------------------
Description:
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.
was:
As a workaround for PHOENIX-2062, I tried the following query:
{code}
SELECT COUNT(DISTINCT (a.col1, b.col2)) ...
{code}
However, this always returns 1 as the COUNT DISTINCT which is wrong.
> 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
>
> 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)