[
https://issues.apache.org/jira/browse/PHOENIX-5217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806448#comment-16806448
]
chenglei edited comment on PHOENIX-5217 at 4/1/19 6:37 AM:
-----------------------------------------------------------
Uploaded my first patch. The modification is for {{UngroupedAggregate}}, we can
not push the limit to server.
[~tdsilva], please help me have a review, just a simple modification ,so there
is no PR, thank you very much.
was (Author: comnetwork):
Uploaded my first patch. The modification is for {{UngroupedAggregate}}, we can
not push the limit to server.
[~tdsilva], please help me have a review, thank you very much.
> 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
> Assignee: chenglei
> Priority: Critical
> Fix For: 4.15.0, 5.1.0
>
> Attachments: PHOENIX-5217-4.x-HBase-1.4.patch
>
>
> 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)