You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2016/06/12 00:09:21 UTC

[jira] [Assigned] (PHOENIX-2987) DISTINCT/GROUP BY optimization not correct for null values in key parts

     [ https://issues.apache.org/jira/browse/PHOENIX-2987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Hofhansl reassigned PHOENIX-2987:
--------------------------------------

    Assignee: Lars Hofhansl

> DISTINCT/GROUP BY optimization not correct for null values in key parts
> -----------------------------------------------------------------------
>
>                 Key: PHOENIX-2987
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2987
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Lars Hofhansl
>            Assignee: Lars Hofhansl
>             Fix For: 4.8.0
>
>         Attachments: 2987.txt
>
>
> During forward scans with the DistinctPrefix filter set null values are not returned.
> The reason is that that lastKey is initialized with ByteUtil.EMPTY_BYTE_ARRAY, which happens to the equal to a null value in a key part. So the filter determines it has seen the value before.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)