You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Ben Kim <be...@gmail.com> on 2012/05/29 13:34:21 UTC

ColumnCountGetFilter not working with FilterList

This is a straightforward question and problem.

            Get get = new Get(rowkey);
            FilterList filterList = new FilterList();
            filterList.addFilter(new ColumnCountGetFilter(100));
            get.setFilter(filterList);
            Result r = table.get(get);

This returns zero columns where it should have 100 columns.
It works well without FilterList.

Don't know what went wrong. Any help would be thankful


-- 

*Benjamin Kim*
*benkimkimben at gmail*

RE: ColumnCountGetFilter not working with FilterList

Posted by Anoop Sam John <an...@huawei.com>.
The problem is when we have more KVs in that row than the limit [limit in ColumnCountGetFilter].. In this case with  FilterList the problem is coming.  
@Ben can u file a Jira?

-Anoop-
________________________________________
From: Anoop Sam John [anoopsj@huawei.com]
Sent: Tuesday, May 29, 2012 5:22 PM
To: user@hbase.apache.org
Subject: RE: ColumnCountGetFilter not working with FilterList

Hi Ben,
            Is this the same code you are testing?  Which version of HBase you are testing with? I have checked with 0.94 and it works fine ( with FilterList also )

-Anoop-

________________________________________
From: Ben Kim [benkimkimben@gmail.com]
Sent: Tuesday, May 29, 2012 5:04 PM
To: user@hbase.apache.org
Subject: ColumnCountGetFilter not working with FilterList

This is a straightforward question and problem.

            Get get = new Get(rowkey);
            FilterList filterList = new FilterList();
            filterList.addFilter(new ColumnCountGetFilter(100));
            get.setFilter(filterList);
            Result r = table.get(get);

This returns zero columns where it should have 100 columns.
It works well without FilterList.

Don't know what went wrong. Any help would be thankful


--

*Benjamin Kim*
*benkimkimben at gmail*

RE: ColumnCountGetFilter not working with FilterList

Posted by "Ramkrishna.S.Vasudevan" <ra...@huawei.com>.
Hi NN

HBASE-6132 has been raised for the same.  There are few issues when you use these filters with filterlist.

Regards
Ram

> -----Original Message-----
> From: NNever [mailto:nneverwei@gmail.com]
> Sent: Monday, June 04, 2012 12:29 PM
> To: user@hbase.apache.org
> Subject: Re: ColumnCountGetFilter not working with FilterList
> 
> I'm sorry I made some mistake on it...
> 
> 2012/6/4 NNever <nn...@gmail.com>
> 
> > I test it on 0.94.
> > In my testcode, there are 4 columns in a row.
> > If set ColumnCountGetFilter(100), the result is 4; or if set
> > ColumnCountGetFilter(2) , the result is still 4.
> > The 'limit' seems doesn't function well...
> >
> > Yours,
> > nn
> >


Re: ColumnCountGetFilter not working with FilterList

Posted by NNever <nn...@gmail.com>.
I'm sorry I made some mistake on it...

2012/6/4 NNever <nn...@gmail.com>

> I test it on 0.94.
> In my testcode, there are 4 columns in a row.
> If set ColumnCountGetFilter(100), the result is 4; or if set
> ColumnCountGetFilter(2) , the result is still 4.
> The 'limit' seems doesn't function well...
>
> Yours,
> nn
>

Re: ColumnCountGetFilter not working with FilterList

Posted by NNever <nn...@gmail.com>.
I test it on 0.94.
In my testcode, there are 4 columns in a row.
If set ColumnCountGetFilter(100), the result is 4; or if set
ColumnCountGetFilter(2) , the result is still 4.
The 'limit' seems doesn't function well...

Yours,
nn

Re: ColumnCountGetFilter not working with FilterList

Posted by Ben Kim <be...@gmail.com>.
Ram, you are right PageFilter won't work either

I filed hbase jira at https://issues.apache.org/jira/browse/HBASE-6132

On Tue, May 29, 2012 at 10:49 PM, Ramkrishna.S.Vasudevan <
ramkrishna.vasudevan@huawei.com> wrote:

> Discussing with Anoop I think PageFilter also may not work when used with
> FilterList. Need to check this.
> Please file a JIRA for the same we can look into all possibilities.
>
> Regards
> Ram
>
>
> > -----Original Message-----
> > From: Anoop Sam John [mailto:anoopsj@huawei.com]
> > Sent: Tuesday, May 29, 2012 5:22 PM
> > To: user@hbase.apache.org
> > Subject: RE: ColumnCountGetFilter not working with FilterList
> >
> > Hi Ben,
> >             Is this the same code you are testing?  Which version of
> > HBase you are testing with? I have checked with 0.94 and it works fine
> > ( with FilterList also )
> >
> > -Anoop-
> >
> > ________________________________________
> > From: Ben Kim [benkimkimben@gmail.com]
> > Sent: Tuesday, May 29, 2012 5:04 PM
> > To: user@hbase.apache.org
> > Subject: ColumnCountGetFilter not working with FilterList
> >
> > This is a straightforward question and problem.
> >
> >             Get get = new Get(rowkey);
> >             FilterList filterList = new FilterList();
> >             filterList.addFilter(new ColumnCountGetFilter(100));
> >             get.setFilter(filterList);
> >             Result r = table.get(get);
> >
> > This returns zero columns where it should have 100 columns.
> > It works well without FilterList.
> >
> > Don't know what went wrong. Any help would be thankful
> >
> >
> > --
> >
> > *Benjamin Kim*
> > *benkimkimben at gmail*
>
>


-- 

*Benjamin Kim*
**Mo : +82 10.5357.0521*
benkimkimben at gmail*

RE: ColumnCountGetFilter not working with FilterList

Posted by "Ramkrishna.S.Vasudevan" <ra...@huawei.com>.
Discussing with Anoop I think PageFilter also may not work when used with
FilterList. Need to check this.
Please file a JIRA for the same we can look into all possibilities.

Regards
Ram


> -----Original Message-----
> From: Anoop Sam John [mailto:anoopsj@huawei.com]
> Sent: Tuesday, May 29, 2012 5:22 PM
> To: user@hbase.apache.org
> Subject: RE: ColumnCountGetFilter not working with FilterList
> 
> Hi Ben,
>             Is this the same code you are testing?  Which version of
> HBase you are testing with? I have checked with 0.94 and it works fine
> ( with FilterList also )
> 
> -Anoop-
> 
> ________________________________________
> From: Ben Kim [benkimkimben@gmail.com]
> Sent: Tuesday, May 29, 2012 5:04 PM
> To: user@hbase.apache.org
> Subject: ColumnCountGetFilter not working with FilterList
> 
> This is a straightforward question and problem.
> 
>             Get get = new Get(rowkey);
>             FilterList filterList = new FilterList();
>             filterList.addFilter(new ColumnCountGetFilter(100));
>             get.setFilter(filterList);
>             Result r = table.get(get);
> 
> This returns zero columns where it should have 100 columns.
> It works well without FilterList.
> 
> Don't know what went wrong. Any help would be thankful
> 
> 
> --
> 
> *Benjamin Kim*
> *benkimkimben at gmail*


RE: ColumnCountGetFilter not working with FilterList

Posted by Anoop Sam John <an...@huawei.com>.
Hi Ben,
            Is this the same code you are testing?  Which version of HBase you are testing with? I have checked with 0.94 and it works fine ( with FilterList also )

-Anoop-

________________________________________
From: Ben Kim [benkimkimben@gmail.com]
Sent: Tuesday, May 29, 2012 5:04 PM
To: user@hbase.apache.org
Subject: ColumnCountGetFilter not working with FilterList

This is a straightforward question and problem.

            Get get = new Get(rowkey);
            FilterList filterList = new FilterList();
            filterList.addFilter(new ColumnCountGetFilter(100));
            get.setFilter(filterList);
            Result r = table.get(get);

This returns zero columns where it should have 100 columns.
It works well without FilterList.

Don't know what went wrong. Any help would be thankful


--

*Benjamin Kim*
*benkimkimben at gmail*