[
https://issues.apache.org/jira/browse/HBASE-4364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jie Huang updated HBASE-4364:
-----------------------------
Attachment: hbase-4364-0_94_0.patch
One possible solution for the feature:
1. Add sanityCheck() API in Filter. And call the check function in
getScanner(). So the filter can check the scan and its criteria before hand.
2. In SingleColumnValueFilter, if the tested set doesn't include the criteria
column, add it in sanityCheck(). Afterwards, remove the column in
filterRow(kv), so that the user will get all required columns.
I will add one corresponding testcase and do the verification later. Any
comment, please let me know. thanks.
> 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
> Attachments: hbase-4364-0_94_0.patch
>
>
> 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