Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 b69f1875e -> ec0a4970c


PHOENIX-4473 Exception when Adding new columns to base table and view diverge 
(Ankit Singhal)


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

Branch: refs/heads/4.x-HBase-0.98
Commit: ec0a4970c9d465e0f9124ba79b08467d58ac7e93
Parents: b69f187
Author: Thomas D'Silva <tdsi...@apache.org>
Authored: Thu Dec 28 11:22:26 2017 -0800
Committer: Thomas D'Silva <tdsi...@apache.org>
Committed: Thu Dec 28 11:30:31 2017 -0800

----------------------------------------------------------------------
 .../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/ec0a4970/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 15d5bdc..785f2a1 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
@@ -2937,7 +2937,7 @@ public class MetaDataEndpointImpl extends 
MetaDataProtocol implements Coprocesso
                         PhoenixDatabaseMetaData.ORDINAL_POSITION_BYTES, 
ordinalPositionBytes);
             
             // New PK columns have to be nullable after the first DDL
-            byte[] isNullableBytes = PBoolean.INSTANCE.toBytes(true);
+            byte[] isNullableBytes = 
PBoolean.INSTANCE.toBytes(ResultSetMetaData.columnNullable);
             
indexColumnDefinitionPut.add(PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES,
                         PhoenixDatabaseMetaData.NULLABLE_BYTES, 
isNullableBytes);
             

Reply via email to