[ 
https://issues.apache.org/jira/browse/HBASE-19824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16348163#comment-16348163
 ] 

Reid Chan commented on HBASE-19824:
-----------------------------------

{code}
hbase(main):029:0> scan 't1'
ROW                                              COLUMN+CELL
 r1                                              column=f1:a1, 
timestamp=1517472418051, value=a2
 r1                                              column=f1:b1, 
timestamp=1517471748594, value=b2
 r2                                              column=f1:a0, 
timestamp=1517471901291, value=a1
 r2                                              column=f1:a1, 
timestamp=1517471894256, value=a2
{code}
{code}
hbase(main):031:0>  scan 't1', {FILTER => "SingleColumnValueFilter('f1', 'a1', 
>=, 'binary:a2', false, true, false)"}
ROW                                              COLUMN+CELL
 r1                                              column=f1:a1, 
timestamp=1517472418051, value=a2
 r2                                              column=f1:a1, 
timestamp=1517471894256, value=a2
{code}

> SingleColumnValueFilter returns wrong result when used in shell command
> -----------------------------------------------------------------------
>
>                 Key: HBASE-19824
>                 URL: https://issues.apache.org/jira/browse/HBASE-19824
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha-4
>            Reporter: Ted Yu
>            Assignee: Reid Chan
>            Priority: Major
>         Attachments: HBASE-19824.master.001.patch, 
> HBASE-19824.master.002.patch
>
>
> There are two cells in table t1:
> {code}
> ROW                                                         COLUMN+CELL
>  r1                                                         column=f1:a1, 
> timestamp=1516313683984, value=a2
>  r1                                                         column=f1:b1, 
> timestamp=1516313700744, value=b2
> {code}
> When SingleColumnValueFilter is used in shell command, no filtering was done:
> {code}
> hbase(main):022:0> scan 't1', {FILTER => "SingleColumnValueFilter('f1', 'a1', 
> =, 'binary:a2')"}
> ROW                                                         COLUMN+CELL
>  r1                                                         column=f1:a1, 
> timestamp=1516313683984, value=a2
>  r1                                                         column=f1:b1, 
> timestamp=1516313700744, value=b2
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to