You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Shrijeet Paliwal <sh...@rocketfuel.com> on 2012/07/27 01:15:13 UTC

Rowcounter with column name broken?

Hi,
Given what is explained here
https://issues.apache.org/jira/browse/HBASE-6042 , usage of rowcounter
like this : RowCounter <tablename> <fam:col> is broken.
Could some one confirm?

-Shrijeet

Re: Rowcounter with column name broken?

Posted by Shrijeet Paliwal <sh...@rocketfuel.com>.
Created https://issues.apache.org/jira/browse/HBASE-6468 . Attached a
patch with test.
Thanks for looking Ted.

-Shrijeet

On Thu, Jul 26, 2012 at 9:48 PM,  <yu...@gmail.com> wrote:
> I think this is indeed an issue.
>
> Mind filing a JIRA ?
>
> Thanks
>
>
>
> On Jul 26, 2012, at 9:35 PM, Shrijeet Paliwal <sh...@rocketfuel.com> wrote:
>
>> Sorry for the lazy email last time. Here is the description in little
>> more detail:
>>
>> The RowCounter use FirstKeyOnlyFilter regardless of whether or not the
>> command line argument specified a column family (or family:qualifier).
>> In case when no qualifier was specified as argument, the scan will
>> give correct result. However in the other case the scan instance may
>> have been set with columns other than the very first column in the
>> row, causing scan to get nothing as the FirstKeyOnlyFilter removes
>> everything else.
>>
>>
>> -Shrijeet
>>
>> On Thu, Jul 26, 2012 at 4:15 PM, Shrijeet Paliwal
>> <sh...@rocketfuel.com> wrote:
>>> Hi,
>>> Given what is explained here
>>> https://issues.apache.org/jira/browse/HBASE-6042 , usage of rowcounter
>>> like this : RowCounter <tablename> <fam:col> is broken.
>>> Could some one confirm?
>>>
>>> -Shrijeet

Re: Rowcounter with column name broken?

Posted by yu...@gmail.com.
I think this is indeed an issue. 

Mind filing a JIRA ?

Thanks 



On Jul 26, 2012, at 9:35 PM, Shrijeet Paliwal <sh...@rocketfuel.com> wrote:

> Sorry for the lazy email last time. Here is the description in little
> more detail:
> 
> The RowCounter use FirstKeyOnlyFilter regardless of whether or not the
> command line argument specified a column family (or family:qualifier).
> In case when no qualifier was specified as argument, the scan will
> give correct result. However in the other case the scan instance may
> have been set with columns other than the very first column in the
> row, causing scan to get nothing as the FirstKeyOnlyFilter removes
> everything else.
> 
> 
> -Shrijeet
> 
> On Thu, Jul 26, 2012 at 4:15 PM, Shrijeet Paliwal
> <sh...@rocketfuel.com> wrote:
>> Hi,
>> Given what is explained here
>> https://issues.apache.org/jira/browse/HBASE-6042 , usage of rowcounter
>> like this : RowCounter <tablename> <fam:col> is broken.
>> Could some one confirm?
>> 
>> -Shrijeet

Re: Rowcounter with column name broken?

Posted by Shrijeet Paliwal <sh...@rocketfuel.com>.
Sorry for the lazy email last time. Here is the description in little
more detail:

The RowCounter use FirstKeyOnlyFilter regardless of whether or not the
command line argument specified a column family (or family:qualifier).
In case when no qualifier was specified as argument, the scan will
give correct result. However in the other case the scan instance may
have been set with columns other than the very first column in the
row, causing scan to get nothing as the FirstKeyOnlyFilter removes
everything else.


-Shrijeet

On Thu, Jul 26, 2012 at 4:15 PM, Shrijeet Paliwal
<sh...@rocketfuel.com> wrote:
> Hi,
> Given what is explained here
> https://issues.apache.org/jira/browse/HBASE-6042 , usage of rowcounter
> like this : RowCounter <tablename> <fam:col> is broken.
> Could some one confirm?
>
> -Shrijeet