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:08:20 UTC
[jira] [Updated] (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 updated PHOENIX-2987:
-----------------------------------
Description:
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.
> 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
> Fix For: 4.8.0
>
>
> 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)