You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Vikram Singh Chandel (JIRA)" <ji...@apache.org> on 2013/12/02 11:40:35 UTC
[jira] [Updated] (HBASE-10067) Filters are not applied to
Coprocessor if columns are added to the scanner
[ https://issues.apache.org/jira/browse/HBASE-10067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vikram Singh Chandel updated HBASE-10067:
-----------------------------------------
Description:
While applying columns to scanner in coprocessor the filtering does not happen and entire scan of the table is done
Expected behaviour: Filters should be applied when particular columns are added to scanner
Actual behaviour: Filter are not applied entire result set is returned
Code Snippet:
Scan scan = new Scan();
scan.addColumn(family, qualifier);//Entire scan happens Filters are ignored
SingleColumnValueFilter filterOne =new SingleColumnValueFilter(colFal,col,
CompareOp.EQUAL, val);
filterOne.setFilterIfMissing(true);
FilterList filter = new FilterList(Operator.MUST_PASS_ALL,
Arrays.asList((Filter) filterOne));
scan.setFilter(filter); // Not working
If addFamily is used it works
scan.addFamily(family);
scan.setFilter(filter); //Works
was:
While applying columns to scanner in coprocessor the filtering does not happen and entire scan of the table is done
Total Rows in Table: 8.1 million
Expected Result :8788
Actual Result: 8.1 million
Code Snippet:
Scan scan = new Scan();
scan.addColumn(family, qualifier);//Entire scan happens Filters are ignored
SingleColumnValueFilter filterOne =new SingleColumnValueFilter(colFal,col,
CompareOp.EQUAL, val);
filterOne.setFilterIfMissing(true);
FilterList filter = new FilterList(Operator.MUST_PASS_ALL,
Arrays.asList((Filter) filterOne));
scan.setFilter(filter); // Not working
If addFamily is used it works
scan.addFamily(family);
scan.setFilter(filter); //Works
> Filters are not applied to Coprocessor if columns are added to the scanner
> --------------------------------------------------------------------------
>
> Key: HBASE-10067
> URL: https://issues.apache.org/jira/browse/HBASE-10067
> Project: HBase
> Issue Type: Bug
> Components: Coprocessors, Filters, Scanners
> Affects Versions: 0.94.6
> Environment: Linux 2.6.32-279.11.1.el6.x86_64
> Reporter: Vikram Singh Chandel
>
> While applying columns to scanner in coprocessor the filtering does not happen and entire scan of the table is done
> Expected behaviour: Filters should be applied when particular columns are added to scanner
> Actual behaviour: Filter are not applied entire result set is returned
> Code Snippet:
> Scan scan = new Scan();
> scan.addColumn(family, qualifier);//Entire scan happens Filters are ignored
> SingleColumnValueFilter filterOne =new SingleColumnValueFilter(colFal,col,
> CompareOp.EQUAL, val);
> filterOne.setFilterIfMissing(true);
>
> FilterList filter = new FilterList(Operator.MUST_PASS_ALL,
> Arrays.asList((Filter) filterOne));
> scan.setFilter(filter); // Not working
> If addFamily is used it works
> scan.addFamily(family);
> scan.setFilter(filter); //Works
--
This message was sent by Atlassian JIRA
(v6.1#6144)