[
https://issues.apache.org/jira/browse/HBASE-19824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16348240#comment-16348240
]
Chia-Ping Tsai commented on HBASE-19824:
----------------------------------------
How do you think about the combination of {{fetchEntireRow}} and
{{latestVersionOnly}}? Your patch seems to have different view about
{{latestVersionOnly}} when {{fetchEntireRow}} is false.
{code:java}
// Column and value match, check if it is latest version.
// If true, just include and this row is done. (since latest always comes first)
// If false, just include.
return this.latestVersionOnly ? ReturnCode.INCLUDE_AND_SEEK_NEXT_ROW :
ReturnCode.INCLUDE;{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)