phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdsi...@apache.org
Subject [44/50] [abbrv] phoenix git commit: PHOENIX-4473 Exception when Adding new columns to base table and view diverge (Ankit Singhal)
Date Fri, 19 Jan 2018 18:03:52 GMT
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/ae21f873
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/ae21f873
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/ae21f873

Branch: refs/heads/system-catalog
Commit: ae21f87338de5c80efd8e89b256415faad0e00a3
Parents: edc9d12
Author: Thomas D'Silva <tdsilva@apache.org>
Authored: Thu Dec 28 11:22:26 2017 -0800
Committer: Thomas D'Silva <tdsilva@apache.org>
Committed: Thu Dec 28 11:22: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/ae21f873/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 7ad9028..18b1ee5 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(true);
+            byte[] isNullableBytes = PBoolean.INSTANCE.toBytes(ResultSetMetaData.columnNullable);
             indexColumnDefinitionPut.add(PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES,
                         PhoenixDatabaseMetaData.NULLABLE_BYTES, isNullableBytes);
             


Mime
View raw message