You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2013/12/27 21:45:50 UTC

[jira] [Resolved] (HBASE-7362) Scan.setRaw(true) ignores Scan.setTimeRange(minTimestamp,maxTimestamp)

     [ https://issues.apache.org/jira/browse/HBASE-7362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Hofhansl resolved HBASE-7362.
----------------------------------

    Resolution: Implemented

This was implemented as part of another issue.

> Scan.setRaw(true) ignores Scan.setTimeRange(minTimestamp,maxTimestamp)
> ----------------------------------------------------------------------
>
>                 Key: HBASE-7362
>                 URL: https://issues.apache.org/jira/browse/HBASE-7362
>             Project: HBase
>          Issue Type: Bug
>            Reporter: James Taylor
>            Priority: Minor
>
> The following doesn't work as expected:
> Scan scan = new Scan();
> scan.setRaw(true);
> scan.setTimeRange(10,20);
> scan.setStartRow(new byte[] {1});
> scan.setStopRow(new byte[] {2});
> RegionScanner scanner = region.getScanner(scan);
> List<KeyValue> results = new ArrayList<KeyValue>();
> scanner.next(results);
> // This assert will fail as the raw scan ignores the time range
> assertTrue(results.isEmpty() || results.get(0).getTimestamp() >= 10);



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)