You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by an...@apache.org on 2017/12/21 06:31:00 UTC

phoenix git commit: PHOENIX-4473 Exception when Adding new columns to base table and view diverge

Repository: phoenix
Updated Branches:
  refs/heads/5.x-HBase-2.0 55c117ac0 -> 1fafebf5d


PHOENIX-4473 Exception when Adding new columns to base table and view diverge


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

Branch: refs/heads/5.x-HBase-2.0
Commit: 1fafebf5d1829d32c3f57ec362af9c88e0453832
Parents: 55c117a
Author: Ankit Singhal <an...@gmail.com>
Authored: Thu Dec 21 12:00:51 2017 +0530
Committer: Ankit Singhal <an...@gmail.com>
Committed: Thu Dec 21 12:00:51 2017 +0530

----------------------------------------------------------------------
 .../java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/1fafebf5/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
index c84c4e4..0294a17 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
@@ -2968,7 +2968,7 @@ public class MetaDataEndpointImpl extends MetaDataProtocol implements RegionCopr
                         PhoenixDatabaseMetaData.ORDINAL_POSITION_BYTES, ordinalPositionBytes);
             
             // New PK columns have to be nullable after the first DDL
-            byte[] isNullableBytes = PBoolean.INSTANCE.toBytes(true);
+            byte[] isNullableBytes = PInteger.INSTANCE.toBytes(ResultSetMetaData.columnNullable);
             indexColumnDefinitionPut.addColumn(PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES,
                         PhoenixDatabaseMetaData.NULLABLE_BYTES, isNullableBytes);