Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 ec0a4970c -> 16d68523d
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/16d68523 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/16d68523 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/16d68523 Branch: refs/heads/4.x-HBase-0.98 Commit: 16d68523d53c22405343a81f09fc3b8f09b0b21a Parents: ec0a497 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:16 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/16d68523/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 785f2a1..8634d2e 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(ResultSetMetaData.columnNullable); + byte[] isNullableBytes = PInteger.INSTANCE.toBytes(ResultSetMetaData.columnNullable); indexColumnDefinitionPut.add(PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES, PhoenixDatabaseMetaData.NULLABLE_BYTES, isNullableBytes);
