You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by la...@apache.org on 2016/06/22 00:06:19 UTC
phoenix git commit: PHOENIX-3012 Addendum, typo.
Repository: phoenix
Updated Branches:
refs/heads/4.x-HBase-0.98 440219dfd -> 7c8798f67
PHOENIX-3012 Addendum, typo.
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/7c8798f6
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/7c8798f6
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/7c8798f6
Branch: refs/heads/4.x-HBase-0.98
Commit: 7c8798f6774aa6356d39c4e6030ce2c1e0669ef2
Parents: 440219d
Author: Lars Hofhansl <la...@apache.org>
Authored: Tue Jun 21 17:07:43 2016 -0700
Committer: Lars Hofhansl <la...@apache.org>
Committed: Tue Jun 21 17:07:43 2016 -0700
----------------------------------------------------------------------
.../main/java/org/apache/phoenix/filter/DistinctPrefixFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/7c8798f6/phoenix-core/src/main/java/org/apache/phoenix/filter/DistinctPrefixFilter.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/filter/DistinctPrefixFilter.java b/phoenix-core/src/main/java/org/apache/phoenix/filter/DistinctPrefixFilter.java
index a4cbe8a..1280cb5 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/filter/DistinctPrefixFilter.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/filter/DistinctPrefixFilter.java
@@ -86,7 +86,7 @@ public class DistinctPrefixFilter extends FilterBase implements Writable {
byte[] tmpKey = new byte[offset + lastKey.getLength() +
(reversed || type.isFixedWidth() ? 0 : 1)];
System.arraycopy(v.getRowArray(), v.getRowOffset(), tmpKey, 0, offset);
- System.arraycopy(lastKey.get(), 0, tmpKey, offset, lastKey.getLength());
+ System.arraycopy(lastKey.get(), lastKey.getOffset(), tmpKey, offset, lastKey.getLength());
tmp = new ImmutableBytesWritable(tmpKey);
if (!reversed) {
// calculate the next key, the above already 0-padded if needed