You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Dhirendra Singh <dp...@gmail.com> on 2012/09/15 19:51:53 UTC
SingleColumnValueFilter issue with boolean values
I am facing a strange issue with SingleColumnValueFilter , its somehow not
filtering when i am using boolean values as a filter. its working fine once
i use any other type of column (String, Number).
scan.addFamily(Bytes.toBytes("c"));
FilterList totalFilters = new FilterList(Operator.MUST_PASS_ALL);
Filter testFlagfilter = new SingleColumnValueFilter(Bytes.toBytes("c"),
Bytes.toBytes(Constants.TEST_FLAG.getColumnName()),
CompareOp.EQUAL, Bytes.toBytes(true));
totalFilters.addFilter(testFlagfilter);
scan.setFilter(totalFilters);
above is the sample code i used to filter on boolean column, has any one
faced this kind of issue , this is working fine for other datatypes.
could some one please elaborate or give pointers what's wrong with it or
what's the best way to debug
--
Warm Regards,
Dhirendra Pratap
+91. 9717394713