[
https://issues.apache.org/jira/browse/HBASE-4364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401902#comment-13401902
]
Jie Huang commented on HBASE-4364:
----------------------------------
We have met the similar problem as well. After checking the code implementation
and the JavaDoc, it may not be a bug from my perspective. According to its
description, if the input doesn't include that column defined in the filter,
that column will be regarded as missing. If filterIfMissing is true, that row
will be omitted. Otherwise, you will get the row without filtering.
Generally, in real world application, we'd better to check that case on the
client side before issuing the scan. In order to avoid the repetition of
checking missing column on client side, we do a little modification on that
file while using it (see patch file).
> Filters applied to columns not in the selected column list are ignored
> ----------------------------------------------------------------------
>
> Key: HBASE-4364
> URL: https://issues.apache.org/jira/browse/HBASE-4364
> Project: HBase
> Issue Type: Bug
> Components: filters
> Affects Versions: 0.90.4, 0.92.0
> Reporter: Todd Lipcon
> Priority: Critical
>
> For a scan, if you select some set of columns using addColumns(), and then
> apply a SingleColumnValueFilter that restricts the results based on some
> other columns which aren't selected, then those filter conditions are ignored.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira