You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Chen Feng (JIRA)" <ji...@apache.org> on 2019/04/01 03:12:00 UTC
[jira] [Commented] (PHOENIX-5217) Incorrect result for COUNT
DISTINCT ... limit ...
[ https://issues.apache.org/jira/browse/PHOENIX-5217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806351#comment-16806351 ]
Chen Feng commented on PHOENIX-5217:
------------------------------------
[~comnetwork] That's great. Waiting for your patch. I just remove the code of adding "PageFilter" in that branch, which works but inelegant.
> Incorrect result for COUNT DISTINCT ... limit ...
> -------------------------------------------------
>
> Key: PHOENIX-5217
> URL: https://issues.apache.org/jira/browse/PHOENIX-5217
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.14.1
> Environment: 4.14.1: incorrect
> 4.6: correct.
>
> Reporter: Chen Feng
> Priority: Critical
>
> For table t1(pk1, col1, CONSTRAINT(pk1))
> upsert into "t1" values (1, 1);
> upsert into "t1" values (2, 2);
> sql A: select count("pk1") from "t1" limit 1, return 2 [correct]
> sql B: select count(disctinct("pk1")) from "t1" limit 1, return 1 [incorrect]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)