[ https://issues.apache.org/jira/browse/HBASE-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olariu Adrian updated HBASE-1821: --------------------------------- Attachment: HBASE-1821.patch Problem description: Filter filter1 = new SingleColumnValueFilter(Bytes.toBytes("F1"), Bytes.toBytes("c1"), CompareOp.EQUAL, Bytes.toBytes("1")); Filter filter2 = new SingleColumnValueFilter(Bytes.toBytes("F1"), Bytes.toBytes("c2"), CompareOp.EQUAL, Bytes.toBytes("1")); List<Filter> rowFilters = new ArrayList<Filter>(); rowFilters.add(filter1);rowFilters.add(filter2); Filter filter = new FilterList(FilterList.Operator.MUST_PASS_ALL, rowFilters); s.addColumn(Bytes.toBytes("F1"), Bytes.toBytes("c1")); s.addColumn(Bytes.toBytes("F1"), Bytes.toBytes("c2")); s.setFilter(filter); This scan returns all rows the contains F1:c1 whit val "1" or contains F1:c2 whit val "1" or contains both. It should return only the rows that match both: filter1 and filter2. Solution: if the filter noesn't find inside a row a Column-Value match than the FilterRow method should return true. Patch attached. > Filtering by SingleColumnValueFilter bug > ---------------------------------------- > > Key: HBASE-1821 > URL: https://issues.apache.org/jira/browse/HBASE-1821 > Project: Hadoop HBase > Issue Type: Bug > Reporter: stack > Assignee: Jonathan Gray > Fix For: 0.20.1 > > Attachments: HBASE-1821.patch > > > See up in hbase-user mailing list under title 'Filtering by > SingleColumnValueFilter'. Adrian describes roughly how he fixed the issue > (And what he wanted the filter to do). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.