[
https://issues.apache.org/jira/browse/PHOENIX-3195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lars Hofhansl updated PHOENIX-3195:
-----------------------------------
Attachment: 3195.txt
Trivial patch. Tested that it still performs the optimization if possible.
> Slight safety improvement for using DistinctPrefixFilter
> --------------------------------------------------------
>
> Key: PHOENIX-3195
> URL: https://issues.apache.org/jira/browse/PHOENIX-3195
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: Lars Hofhansl
> Priority: Minor
> Fix For: 4.9.0, 4.8.1
>
> Attachments: 3195.txt
>
>
> There is a very slight improvement to when we should use the
> DistinctPrefixFilter in its current form.
> Currently we check for the absence of WhereConditions, but what we really
> mean to make sure that only one Cell per row is seen. Phoenix already does
> that and used the FirstKeyOnlyFilter in that case. It's best to use this
> condition as well, just to be absolutely safe.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)