Repository: phoenix
Updated Branches:
  refs/heads/4.x-cdh5.11.2 d43f0a523 -> ddb69e14b


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


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

Branch: refs/heads/4.x-cdh5.11.2
Commit: ddb69e14b53d42d4e380860dfeca9cc94f99d414
Parents: d43f0a5
Author: Thomas D'Silva <[email protected]>
Authored: Thu Dec 28 15:34:22 2017 -0800
Committer: Thomas D'Silva <[email protected]>
Committed: Thu Dec 28 15:34:22 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/ddb69e14/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 c806f76..47ee879 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
@@ -2932,7 +2932,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(ResultSetMetaData.columnNullable);
+            byte[] isNullableBytes = 
PInteger.INSTANCE.toBytes(ResultSetMetaData.columnNullable);
             
indexColumnDefinitionPut.add(PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES,
                         PhoenixDatabaseMetaData.NULLABLE_BYTES, 
isNullableBytes);
             

Reply via email to