phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamestay...@apache.org
Subject phoenix git commit: PHOENIX-2361 Use single byte value for empty key value
Date Fri, 30 Oct 2015 01:43:59 GMT
Repository: phoenix
Updated Branches:
  refs/heads/txn f8812c2e7 -> fd917af8c


PHOENIX-2361 Use single byte value for empty key value


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/fd917af8
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/fd917af8
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/fd917af8

Branch: refs/heads/txn
Commit: fd917af8c829f7f11d90c00d59c3c7642f991ab4
Parents: f8812c2
Author: James Taylor <jtaylor@salesforce.com>
Authored: Thu Oct 29 18:43:51 2015 -0700
Committer: James Taylor <jtaylor@salesforce.com>
Committed: Thu Oct 29 18:43:51 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/query/QueryConstants.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/fd917af8/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java b/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java
index 8c2e990..3b5abaa 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java
@@ -158,7 +158,9 @@ public interface QueryConstants {
     public final static int MILLIS_IN_DAY = 1000 * 60 * 60 * 24;
 
     public static final String EMPTY_COLUMN_NAME = "_0";
-    public static final byte[] EMPTY_COLUMN_BYTES = Bytes.toBytes(EMPTY_COLUMN_NAME);
+    // For transactional tables, the value of our empty key value can no longer be empty
+    // since empty values are treated as column delete markers.
+    public static final byte[] EMPTY_COLUMN_BYTES = Bytes.toBytes("x");
     public static final ImmutableBytesPtr EMPTY_COLUMN_BYTES_PTR = new ImmutableBytesPtr(
             EMPTY_COLUMN_BYTES);
 


Mime
View raw message