HBASE-13305 Get(Get get) is not copying the row key
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
8579c6dd49
commit
b5c4d9a04f
|
@ -98,6 +98,7 @@ public class Get extends Query
|
|||
* @param get
|
||||
*/
|
||||
public Get(Get get) {
|
||||
this(get.getRow());
|
||||
this.filter = get.getFilter();
|
||||
this.cacheBlocks = get.getCacheBlocks();
|
||||
this.maxVersions = get.getMaxVersions();
|
||||
|
|
|
@ -156,6 +156,13 @@ public class TestGet {
|
|||
Assert.assertEquals(1, qualifiers.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void TestGetRowFromGetCopyConstructor() throws Exception {
|
||||
Get get = new Get(ROW);
|
||||
Get copyGet = new Get(get);
|
||||
assertEquals(0, Bytes.compareTo(get.getRow(), copyGet.getRow()));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDynamicFilter() throws Exception {
|
||||
Configuration conf = HBaseConfiguration.create();
|
||||
|
|
Loading…
Reference in New Issue