Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.1 a848b5457 -> a2eaaa263
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/a2eaaa26 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/a2eaaa26 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/a2eaaa26 Branch: refs/heads/4.x-HBase-1.1 Commit: a2eaaa263a2cdeb6aa3e5e044224061e1a9b5109 Parents: a848b54 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:36: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/a2eaaa26/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 beac6c4..cc00d07 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);
