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/f7142879
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/f7142879
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/f7142879

Branch: refs/heads/system-catalog
Commit: f7142879f33cae236e0530a8ed4eeaad1542d66a
Parents: ae21f87
Author: Thomas D'Silva <tdsi...@apache.org>
Authored: Thu Dec 28 15:34:22 2017 -0800
Committer: Thomas D'Silva <tdsi...@apache.org>
Committed: Thu Dec 28 15:35:53 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/f7142879/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 18b1ee5..47ad7cf 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
@@ -3077,7 +3077,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