Build failed in Jenkins: Phoenix | Master #1940

2018-02-14 Thread Apache Jenkins Server
See 


Changes:

[jtaylor] PHOENIX-2566 Support NOT NULL constraint for any column for immutable

--
[...truncated 114.41 KB...]
[INFO] Running org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.715 s 
- in org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[INFO] Running org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 694.859 
s - in org.apache.phoenix.end2end.join.HashJoinGlobalIndexIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 57.78 s 
- in org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
[INFO] Running org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Running org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.277 s 
- in org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Running org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 85.998 s 
- in org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Running org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 437.467 
s - in org.apache.phoenix.end2end.join.SubqueryIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.442 s 
- in org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Running org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 58.488 s 
- in org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Running org.apache.phoenix.tx.TransactionIT
[INFO] Running org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.552 s 
- in org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Running org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 136.733 
s - in org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 109.44 s 
- in org.apache.phoenix.tx.TransactionIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 738.865 
s - in org.apache.phoenix.end2end.join.SortMergeJoinGlobalIndexIT
[INFO] Running org.apache.phoenix.util.IndexScrutinyIT
[INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 348.624 
s - in org.apache.phoenix.end2end.join.SubqueryUsingSortMergeJoinIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 935.939 
s - in org.apache.phoenix.end2end.join.HashJoinLocalIndexIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.32 s 
- in org.apache.phoenix.util.IndexScrutinyIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 912.744 
s - in org.apache.phoenix.end2end.join.SortMergeJoinLocalIndexIT
[WARNING] Tests run: 52, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
392.523 s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 423.561 
s - in org.apache.phoenix.tx.TxCheckpointIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   ConcurrentMutationsIT.testConcurrentDeletesAndUpsertValues:214 
Expected to find PK in data table: (0,0)
[ERROR]   DefaultColumnValueIT.testDefaultIndexed:978
[ERROR]   QueryDatabaseMetaDataIT.testAddPKColumn:964 ERROR 1006 (42J04): Only 
nullable columns may be added to primary key. columnName=Z_STRING
[ERROR]   RowValueConstructorIT.testRVCLastPkIsTable1stPkIndex:1584
[ERROR]   SortMergeJoinMoreIT.testBug2894:463 expected:<...CLIENT SORTED BY 
[E.[BUCKET, E.TIMESTAMP]
CLIENT AGGREGATE INTO DISTINCT ROWS BY [E.BUCKET, E.TIMESTAMP]]> but 
was:<...CLIENT SORTED BY [E.[TIMESTAMP, E.BUCKET]
CLIENT AGGREGATE INTO DISTINCT ROWS BY [E.TIMESTAMP, E.BUCKET]]>
[ERROR]   
IndexMetadataIT.testMutableTableOnlyHasPrimaryKeyIndex:623->helpTestTableOnlyHasPrimaryKeyIndex:662
[ERROR]   HashJoinMoreIT.testBug2894:806 expected:<...O DISTINCT ROWS BY 
[[E.BUCKET, "E.TIMESTAMP"]]
CLIENT MERGE SORT
...> but was:<...O DISTINCT ROWS BY [["E.TIMESTAMP", E.BUCKET]]
CLIENT MERGE SORT
...>
[ERROR] Errors: 
[ERROR]   
OrderByIT.testOrderByReverseOptimizationWithNUllsLastBug3491:969->doTestOrderByReverseOptimizationWithNUllsLastBug3491:1017->assertResultSet:1185
 » SQLTimeout
[ERROR]   VariableLengthPKIT.testMissingPKColumn:884 » NullPointer
[INFO] 
[ERROR] Tests run: 3371, Failures: 7, Errors: 2, Skipped: 7
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] 
[INFO] 

Build failed in Jenkins: Phoenix-4.x-HBase-1.2 #271

2018-02-14 Thread Apache Jenkins Server
See 


Changes:

[jtaylor] PHOENIX-2566 Support NOT NULL constraint for any column for immutable

--
[...truncated 137.29 KB...]
CLIENT AGGREGATE INTO DISTINCT ROWS BY [E.BUCKET, E.TIMESTAMP]]> but 
was:<...CLIENT SORTED BY [E.[TIMESTAMP, E.BUCKET]
CLIENT AGGREGATE INTO DISTINCT ROWS BY [E.TIMESTAMP, E.BUCKET]]>
[ERROR]   HashJoinMoreIT.testBug2894:806 expected:<...O DISTINCT ROWS BY 
[[E.BUCKET, "E.TIMESTAMP"]]
CLIENT MERGE SORT
...> but was:<...O DISTINCT ROWS BY [["E.TIMESTAMP", E.BUCKET]]
CLIENT MERGE SORT
...>
[ERROR] Errors: 
[ERROR]   VariableLengthPKIT.testMissingPKColumn:884 » NullPointer
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.createIndexOnTableWithSpecifiedDefaultCF:499
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.createIndexOnTableWithSpecifiedDefaultCF:499
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testCreateIndexAfterUpsertStartedTxnl:264->BaseIndexIT.testCreateIndexAfterUpsertStarted:276
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testCreateIndexAfterUpsertStartedTxnl:264->BaseIndexIT.testCreateIndexAfterUpsertStarted:276
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testCreateIndexAfterUpsertStarted:256->BaseIndexIT.testCreateIndexAfterUpsertStarted:276
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testCreateIndexAfterUpsertStarted:256->BaseIndexIT.testCreateIndexAfterUpsertStarted:276
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testDeleteFromAllPKColumnIndex:192 » 
Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testDeleteFromAllPKColumnIndex:192 » 
Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testDeleteFromNonPKColumnIndex:370 » 
Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testDeleteFromNonPKColumnIndex:370 » 
Runtime
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testGroupByCount:424 » Runtime 
org.apache...
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testGroupByCount:424 » Runtime 
org.apache...
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testInClauseWithIndexOnColumnOfUsignedIntType:470
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testInClauseWithIndexOnColumnOfUsignedIntType:470
 » Runtime
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testInFilterOnIndexedTable:1008 
» Runtime
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testInFilterOnIndexedTable:1008 
» Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testIndexWithCaseSensitiveCols:893 » 
Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testIndexWithCaseSensitiveCols:893 » 
Runtime
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testIndexWithDecimalCol:1031 » 
Runtime or...
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testIndexWithDecimalCol:1031 » 
Runtime or...
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testIndexWithNullableDateCol:539 
» Runtime
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testIndexWithNullableDateCol:539 
» Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testIndexWithNullableFixedWithCols:132 » 
Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testIndexWithNullableFixedWithCols:132 » 
Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testMultipleUpdatesAcrossRegions:803 » 
Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testMultipleUpdatesAcrossRegions:803 » 
Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testReturnedTimestamp:1168->BaseTest.initATableValues:1083->BaseTest.ensureTableCreated:717->BaseTest.createTestTable:775->BaseTest.createTestTable:811
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testReturnedTimestamp:1168->BaseTest.initATableValues:1083->BaseTest.ensureTableCreated:717->BaseTest.createTestTable:775->BaseTest.createTestTable:811
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testSelectAllAndAliasWithIndex:598 » 
Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testSelectAllAndAliasWithIndex:598 » 
Runtime
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testSelectCF:677 » Runtime 
org.apache.thr...
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testSelectCF:677 » Runtime 
org.apache.thr...
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testSelectDistinctOnTableWithSecondaryImmutableIndex:445
 » Runtime
[ERROR]   
GlobalImmutableTxIndexIT>BaseIndexIT.testSelectDistinctOnTableWithSecondaryImmutableIndex:445
 » Runtime
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testTableDescriptorPriority:1093 
» Runtime
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testTableDescriptorPriority:1093 
» Runtime
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testUpsertAfterIndexDrop:738 » 
Runtime or...
[ERROR]   GlobalImmutableTxIndexIT>BaseIndexIT.testUpsertAfterIndexDrop:738 » 
Runtime or...
[INFO] 
[ERROR] Tests run: 3370, Failures: 3, Errors: 39, Skipped: 7
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test 

Build failed in Jenkins: Phoenix | Master #1939

2018-02-14 Thread Apache Jenkins Server
See 


Changes:

[jtaylor] PHOENIX-2566 Support NOT NULL constraint for any column for immutable

--
[...truncated 114.24 KB...]
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.83 s 
- in org.apache.phoenix.end2end.salted.SaltedTableIT
[INFO] Running org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.421 s 
- in org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
[INFO] Running org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.568 s 
- in org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Running org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Running org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.215 s 
- in org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[INFO] Running org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.553 s 
- in org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
[INFO] Running org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.525 s 
- in org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Running org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 43.551 s 
- in org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Running org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.533 s 
- in org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Running org.apache.phoenix.tx.TransactionIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 75.999 s 
- in org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Running org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 105.801 
s - in org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 287.057 
s - in org.apache.phoenix.end2end.join.SubqueryUsingSortMergeJoinIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 98.028 s 
- in org.apache.phoenix.tx.TransactionIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 649.393 
s - in org.apache.phoenix.end2end.join.SortMergeJoinGlobalIndexIT
[INFO] Running org.apache.phoenix.util.IndexScrutinyIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.586 s 
- in org.apache.phoenix.util.IndexScrutinyIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 821.118 
s - in org.apache.phoenix.end2end.join.HashJoinLocalIndexIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 828.141 
s - in org.apache.phoenix.end2end.join.SortMergeJoinLocalIndexIT
[WARNING] Tests run: 52, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
358.753 s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 441.913 
s - in org.apache.phoenix.tx.TxCheckpointIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   ConcurrentMutationsIT.testConcurrentDeletesAndUpsertValues:214 
Expected to find PK in data table: (0,0)
[ERROR]   DefaultColumnValueIT.testDefaultIndexed:978
[ERROR]   QueryDatabaseMetaDataIT.testAddPKColumn:964 ERROR 1006 (42J04): Only 
nullable columns may be added to primary key. columnName=Z_STRING
[ERROR]   RowValueConstructorIT.testRVCLastPkIsTable1stPkIndex:1584
[ERROR]   SortMergeJoinMoreIT.testBug2894:463 expected:<...CLIENT SORTED BY 
[E.[BUCKET, E.TIMESTAMP]
CLIENT AGGREGATE INTO DISTINCT ROWS BY [E.BUCKET, E.TIMESTAMP]]> but 
was:<...CLIENT SORTED BY [E.[TIMESTAMP, E.BUCKET]
CLIENT AGGREGATE INTO DISTINCT ROWS BY [E.TIMESTAMP, E.BUCKET]]>
[ERROR]   
IndexMetadataIT.testMutableTableOnlyHasPrimaryKeyIndex:623->helpTestTableOnlyHasPrimaryKeyIndex:662
[ERROR]   HashJoinMoreIT.testBug2894:806 expected:<...O DISTINCT ROWS BY 
[[E.BUCKET, "E.TIMESTAMP"]]
CLIENT MERGE SORT
...> but was:<...O DISTINCT ROWS BY [["E.TIMESTAMP", E.BUCKET]]
CLIENT MERGE SORT
...>
[ERROR] Errors: 
[ERROR]   
OrderByIT.testOrderByReverseOptimizationWithNUllsLastBug3491:969->doTestOrderByReverseOptimizationWithNUllsLastBug3491:1017->assertResultSet:1185
 » SQLTimeout
[ERROR]   VariableLengthPKIT.testMissingPKColumn:884 » NullPointer
[INFO] 
[ERROR] Tests run: 3371, Failures: 7, Errors: 2, Skipped: 7
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] 
[INFO] 

Build failed in Jenkins: Phoenix-4.x-HBase-1.2 #270

2018-02-14 Thread Apache Jenkins Server
See 


Changes:

[jtaylor] PHOENIX-2566 Support NOT NULL constraint for any column for immutable

--
[...truncated 107.32 KB...]
[INFO] Running org.apache.phoenix.end2end.join.HashJoinGlobalIndexIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 107.471 
s - in org.apache.phoenix.end2end.index.txn.MutableRollbackIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinLocalIndexIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 84.096 s 
- in org.apache.phoenix.end2end.index.txn.RollbackIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinMoreIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 457.677 
s - in org.apache.phoenix.end2end.index.LocalMutableNonTxIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 456.184 
s - in org.apache.phoenix.end2end.index.LocalImmutableNonTxIndexIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinNoIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 476.643 
s - in org.apache.phoenix.end2end.index.LocalImmutableTxIndexIT
[ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 93.052 
s <<< FAILURE! - in org.apache.phoenix.end2end.join.HashJoinMoreIT
[ERROR] testBug2894(org.apache.phoenix.end2end.join.HashJoinMoreIT)  Time 
elapsed: 9.001 s  <<< FAILURE!
org.junit.ComparisonFailure: 
expected:<...O DISTINCT ROWS BY [[E.BUCKET, "E.TIMESTAMP"]]
CLIENT MERGE SORT
...> but was:<...O DISTINCT ROWS BY [["E.TIMESTAMP", E.BUCKET]]
CLIENT MERGE SORT
...>
at 
org.apache.phoenix.end2end.join.HashJoinMoreIT.testBug2894(HashJoinMoreIT.java:806)

[INFO] Running org.apache.phoenix.end2end.join.SortMergeJoinNoIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 473.809 
s - in org.apache.phoenix.end2end.index.LocalMutableTxIndexIT
[INFO] Running org.apache.phoenix.end2end.join.SortMergeJoinGlobalIndexIT
[INFO] Running org.apache.phoenix.end2end.join.SortMergeJoinLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.join.SubqueryIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 353.864 
s - in org.apache.phoenix.end2end.join.HashJoinNoIndexIT
[INFO] Tests run: 64, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 716.163 
s - in org.apache.phoenix.end2end.index.MutableIndexIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 356.398 
s - in org.apache.phoenix.end2end.join.SortMergeJoinNoIndexIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableIT
[INFO] Running org.apache.phoenix.end2end.join.SubqueryUsingSortMergeJoinIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.491 s 
- in org.apache.phoenix.end2end.salted.SaltedTableIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.361 s 
- in org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
[INFO] Running org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.859 s 
- in org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[INFO] Running org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 384.127 
s - in org.apache.phoenix.end2end.join.SubqueryIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.751 s 
- in org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
[INFO] Running org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 605.27 
s - in org.apache.phoenix.end2end.join.HashJoinGlobalIndexIT
[INFO] Running org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.266 s 
- in org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Running org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 43.389 s 
- in org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Running org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Running org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.221 s 
- in org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Running org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 88.512 s 
- in org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Running org.apache.phoenix.tx.TransactionIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.633 s 
- in org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] 

phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table (addendum)

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/5.x-HBase-2.0 8f7c26b5c -> f72e842df


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table 
(addendum)


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

Branch: refs/heads/5.x-HBase-2.0
Commit: f72e842df100b12e124c4a5b818a41610f4dc577
Parents: 8f7c26b
Author: James Taylor 
Authored: Wed Feb 14 20:15:58 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 20:15:58 2018 -0800

--
 .../src/main/java/org/apache/phoenix/schema/MetaDataClient.java| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f72e842d/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java 
b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
index f2538ab..26fd988 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
@@ -3350,7 +3350,7 @@ public class MetaDataClient {
 if(colDef.isPK()) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.NOT_NULLABLE_COLUMN_IN_ROW_KEY)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
-} else if (!isImmutableRows) {
+} else if 
(Boolean.TRUE.equals(isImmutableRows) || (isImmutableRows == null && 
table.isImmutableRows())) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.KEY_VALUE_NOT_NULL)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
 }



phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table (addendum)

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-cdh5.11.2 abafae35a -> 24126735e


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table 
(addendum)


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

Branch: refs/heads/4.x-cdh5.11.2
Commit: 24126735e1f37f859a4b4257d3d46885f1eb4c68
Parents: abafae3
Author: James Taylor 
Authored: Wed Feb 14 20:05:17 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 20:09:11 2018 -0800

--
 .../main/java/org/apache/phoenix/schema/MetaDataClient.java   | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/24126735/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java 
b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
index 10ad199..81a09af 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
@@ -3189,7 +3189,6 @@ public class MetaDataClient {
 }
 
 int position = table.getColumns().size();
-boolean isImmutableRows = table.isImmutableRows();
 
 List currentPKs = table.getPKColumns();
 PColumn lastPK = currentPKs.get(currentPKs.size()-1);
@@ -3207,6 +3206,8 @@ public class MetaDataClient {
 
 MetaPropertiesEvaluated metaPropertiesEvaluated = new 
MetaPropertiesEvaluated();
 changingPhoenixTableProperty = 
evaluateStmtProperties(metaProperties,metaPropertiesEvaluated,table,schemaName,tableName);
+// If changing isImmutableRows to true or it's not being 
changed and is already true
+boolean willBeImmutableRows = 
Boolean.TRUE.equals(metaPropertiesEvaluated.getIsImmutableRows()) || 
(metaPropertiesEvaluated.getIsImmutableRows() == null && 
table.isImmutableRows());
 
 Long timeStamp = TransactionUtil.getTableTimestamp(connection, 
table.isTransactional() || metaProperties.getNonTxToTx());
 int numPkColumnsAdded = 0;
@@ -3229,7 +3230,7 @@ public class MetaDataClient {
 if(colDef.isPK()) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.NOT_NULLABLE_COLUMN_IN_ROW_KEY)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
-} else if (!isImmutableRows) {
+} else if (!willBeImmutableRows) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.KEY_VALUE_NOT_NULL)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
 }
@@ -3274,7 +3275,7 @@ public class MetaDataClient {
 .setSchemaName(schemaName)
 
.setTableName(tableName).build().buildException();
 }
-PColumn column = newColumn(position++, colDef, 
PrimaryKeyConstraint.EMPTY, table.getDefaultFamilyName() == null ? null : 
table.getDefaultFamilyName().getString(), true, columnQualifierBytes, 
isImmutableRows);
+PColumn column = newColumn(position++, colDef, 
PrimaryKeyConstraint.EMPTY, table.getDefaultFamilyName() == null ? null : 
table.getDefaultFamilyName().getString(), true, columnQualifierBytes, 
willBeImmutableRows);
 columns.add(column);
 String pkName = null;
 Short keySeq = null;



phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table (addendum)

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 6c0a83b39 -> 8b7e1eeef


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table 
(addendum)


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

Branch: refs/heads/4.x-HBase-1.2
Commit: 8b7e1eeef301a5ab1f7d8a824cd0f04a428b9dc7
Parents: 6c0a83b
Author: James Taylor 
Authored: Wed Feb 14 20:05:17 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 20:07:52 2018 -0800

--
 .../main/java/org/apache/phoenix/schema/MetaDataClient.java   | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/8b7e1eee/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java 
b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
index 10ad199..81a09af 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
@@ -3189,7 +3189,6 @@ public class MetaDataClient {
 }
 
 int position = table.getColumns().size();
-boolean isImmutableRows = table.isImmutableRows();
 
 List currentPKs = table.getPKColumns();
 PColumn lastPK = currentPKs.get(currentPKs.size()-1);
@@ -3207,6 +3206,8 @@ public class MetaDataClient {
 
 MetaPropertiesEvaluated metaPropertiesEvaluated = new 
MetaPropertiesEvaluated();
 changingPhoenixTableProperty = 
evaluateStmtProperties(metaProperties,metaPropertiesEvaluated,table,schemaName,tableName);
+// If changing isImmutableRows to true or it's not being 
changed and is already true
+boolean willBeImmutableRows = 
Boolean.TRUE.equals(metaPropertiesEvaluated.getIsImmutableRows()) || 
(metaPropertiesEvaluated.getIsImmutableRows() == null && 
table.isImmutableRows());
 
 Long timeStamp = TransactionUtil.getTableTimestamp(connection, 
table.isTransactional() || metaProperties.getNonTxToTx());
 int numPkColumnsAdded = 0;
@@ -3229,7 +3230,7 @@ public class MetaDataClient {
 if(colDef.isPK()) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.NOT_NULLABLE_COLUMN_IN_ROW_KEY)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
-} else if (!isImmutableRows) {
+} else if (!willBeImmutableRows) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.KEY_VALUE_NOT_NULL)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
 }
@@ -3274,7 +3275,7 @@ public class MetaDataClient {
 .setSchemaName(schemaName)
 
.setTableName(tableName).build().buildException();
 }
-PColumn column = newColumn(position++, colDef, 
PrimaryKeyConstraint.EMPTY, table.getDefaultFamilyName() == null ? null : 
table.getDefaultFamilyName().getString(), true, columnQualifierBytes, 
isImmutableRows);
+PColumn column = newColumn(position++, colDef, 
PrimaryKeyConstraint.EMPTY, table.getDefaultFamilyName() == null ? null : 
table.getDefaultFamilyName().getString(), true, columnQualifierBytes, 
willBeImmutableRows);
 columns.add(column);
 String pkName = null;
 Short keySeq = null;



phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table (addendum)

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/master cc3c952b3 -> 22c76a280


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table 
(addendum)


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

Branch: refs/heads/master
Commit: 22c76a2802bdb85ee29028b6016ae688e07ed351
Parents: cc3c952
Author: James Taylor 
Authored: Wed Feb 14 20:05:17 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 20:06:07 2018 -0800

--
 .../main/java/org/apache/phoenix/schema/MetaDataClient.java   | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/22c76a28/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java 
b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
index 10ad199..81a09af 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
@@ -3189,7 +3189,6 @@ public class MetaDataClient {
 }
 
 int position = table.getColumns().size();
-boolean isImmutableRows = table.isImmutableRows();
 
 List currentPKs = table.getPKColumns();
 PColumn lastPK = currentPKs.get(currentPKs.size()-1);
@@ -3207,6 +3206,8 @@ public class MetaDataClient {
 
 MetaPropertiesEvaluated metaPropertiesEvaluated = new 
MetaPropertiesEvaluated();
 changingPhoenixTableProperty = 
evaluateStmtProperties(metaProperties,metaPropertiesEvaluated,table,schemaName,tableName);
+// If changing isImmutableRows to true or it's not being 
changed and is already true
+boolean willBeImmutableRows = 
Boolean.TRUE.equals(metaPropertiesEvaluated.getIsImmutableRows()) || 
(metaPropertiesEvaluated.getIsImmutableRows() == null && 
table.isImmutableRows());
 
 Long timeStamp = TransactionUtil.getTableTimestamp(connection, 
table.isTransactional() || metaProperties.getNonTxToTx());
 int numPkColumnsAdded = 0;
@@ -3229,7 +3230,7 @@ public class MetaDataClient {
 if(colDef.isPK()) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.NOT_NULLABLE_COLUMN_IN_ROW_KEY)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
-} else if (!isImmutableRows) {
+} else if (!willBeImmutableRows) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.KEY_VALUE_NOT_NULL)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
 }
@@ -3274,7 +3275,7 @@ public class MetaDataClient {
 .setSchemaName(schemaName)
 
.setTableName(tableName).build().buildException();
 }
-PColumn column = newColumn(position++, colDef, 
PrimaryKeyConstraint.EMPTY, table.getDefaultFamilyName() == null ? null : 
table.getDefaultFamilyName().getString(), true, columnQualifierBytes, 
isImmutableRows);
+PColumn column = newColumn(position++, colDef, 
PrimaryKeyConstraint.EMPTY, table.getDefaultFamilyName() == null ? null : 
table.getDefaultFamilyName().getString(), true, columnQualifierBytes, 
willBeImmutableRows);
 columns.add(column);
 String pkName = null;
 Short keySeq = null;



phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table (addendum)

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.3 e99b738b6 -> e126dd1dd


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table 
(addendum)


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

Branch: refs/heads/4.x-HBase-1.3
Commit: e126dd1dda5aa80e8296d3b0c84736b22b658999
Parents: e99b738
Author: James Taylor 
Authored: Wed Feb 14 20:05:17 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 20:05:17 2018 -0800

--
 .../main/java/org/apache/phoenix/schema/MetaDataClient.java   | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/e126dd1d/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java 
b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
index 10ad199..81a09af 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
@@ -3189,7 +3189,6 @@ public class MetaDataClient {
 }
 
 int position = table.getColumns().size();
-boolean isImmutableRows = table.isImmutableRows();
 
 List currentPKs = table.getPKColumns();
 PColumn lastPK = currentPKs.get(currentPKs.size()-1);
@@ -3207,6 +3206,8 @@ public class MetaDataClient {
 
 MetaPropertiesEvaluated metaPropertiesEvaluated = new 
MetaPropertiesEvaluated();
 changingPhoenixTableProperty = 
evaluateStmtProperties(metaProperties,metaPropertiesEvaluated,table,schemaName,tableName);
+// If changing isImmutableRows to true or it's not being 
changed and is already true
+boolean willBeImmutableRows = 
Boolean.TRUE.equals(metaPropertiesEvaluated.getIsImmutableRows()) || 
(metaPropertiesEvaluated.getIsImmutableRows() == null && 
table.isImmutableRows());
 
 Long timeStamp = TransactionUtil.getTableTimestamp(connection, 
table.isTransactional() || metaProperties.getNonTxToTx());
 int numPkColumnsAdded = 0;
@@ -3229,7 +3230,7 @@ public class MetaDataClient {
 if(colDef.isPK()) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.NOT_NULLABLE_COLUMN_IN_ROW_KEY)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
-} else if (!isImmutableRows) {
+} else if (!willBeImmutableRows) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.KEY_VALUE_NOT_NULL)
 
.setColumnName(colDef.getColumnDefName().getColumnName()).build().buildException();
 }
@@ -3274,7 +3275,7 @@ public class MetaDataClient {
 .setSchemaName(schemaName)
 
.setTableName(tableName).build().buildException();
 }
-PColumn column = newColumn(position++, colDef, 
PrimaryKeyConstraint.EMPTY, table.getDefaultFamilyName() == null ? null : 
table.getDefaultFamilyName().getString(), true, columnQualifierBytes, 
isImmutableRows);
+PColumn column = newColumn(position++, colDef, 
PrimaryKeyConstraint.EMPTY, table.getDefaultFamilyName() == null ? null : 
table.getDefaultFamilyName().getString(), true, columnQualifierBytes, 
willBeImmutableRows);
 columns.add(column);
 String pkName = null;
 Short keySeq = null;



phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/5.x-HBase-2.0 3e46a06db -> 8f7c26b5c


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table


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

Branch: refs/heads/5.x-HBase-2.0
Commit: 8f7c26b5c8c6f55ff40c09d5b194f78ed1bb0746
Parents: 3e46a06
Author: James Taylor 
Authored: Tue Feb 13 23:14:58 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 19:53:45 2018 -0800

--
 .../apache/phoenix/end2end/AlterTableIT.java|  2 +-
 .../apache/phoenix/end2end/CreateTableIT.java   |  4 +-
 .../apache/phoenix/compile/UpsertCompiler.java  | 38 
 .../phoenix/exception/SQLExceptionCode.java |  5 +-
 .../apache/phoenix/schema/MetaDataClient.java   | 36 +++
 .../org/apache/phoenix/schema/PColumnImpl.java  |  6 +-
 .../org/apache/phoenix/schema/PTableImpl.java   |  1 -
 .../org/apache/phoenix/util/SchemaUtil.java |  6 ++
 .../phoenix/compile/QueryCompilerTest.java  | 98 +++-
 9 files changed, 149 insertions(+), 47 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/8f7c26b5/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
index 34186bb..cfc59bd 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
@@ -476,7 +476,7 @@ public class AlterTableIT extends ParallelStatsDisabledIT {
 stmt.execute();
 fail("Should have failed since altering a table by adding a 
non-nullable column is not allowed.");
 } catch (SQLException e) {
-
assertEquals(SQLExceptionCode.CANNOT_ADD_NOT_NULLABLE_COLUMN.getErrorCode(), 
e.getErrorCode());
+
assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(), 
e.getErrorCode());
 } finally {
 closeStatement(stmt);
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/8f7c26b5/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
index b7b0957..19ca055 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
@@ -415,7 +415,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column ENTRY_POINT_NAME has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }
@@ -431,7 +431,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column V has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/8f7c26b5/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
index 0ac1c7b..57e138b 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
@@ -427,20 +427,20 @@ public class UpsertCompiler {
 
targetColumns.addAll(Collections.nCopies(columnIndexesToBe.length, 
null));
 Arrays.fill(columnIndexesToBe, -1); // TODO: necessary? So we'll 
get an AIOB exception if it's not replaced
 Arrays.fill(pkSlotIndexesToBe, -1); // TODO: necessary? So we'll 
get an AIOB exception if it's not replaced
-

phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-cdh5.11.2 35c2793dd -> abafae35a


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table


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

Branch: refs/heads/4.x-cdh5.11.2
Commit: abafae35a4af42e645f433eb62a93afde1963c63
Parents: 35c2793
Author: James Taylor 
Authored: Tue Feb 13 23:14:58 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 19:50:19 2018 -0800

--
 .../apache/phoenix/end2end/AlterTableIT.java|  2 +-
 .../apache/phoenix/end2end/CreateTableIT.java   |  5 +-
 .../apache/phoenix/compile/UpsertCompiler.java  | 38 
 .../phoenix/exception/SQLExceptionCode.java |  5 +-
 .../apache/phoenix/schema/MetaDataClient.java   | 36 +++
 .../org/apache/phoenix/schema/PColumnImpl.java  |  6 +-
 .../org/apache/phoenix/schema/PTableImpl.java   |  1 -
 .../org/apache/phoenix/util/SchemaUtil.java |  6 ++
 .../phoenix/compile/QueryCompilerTest.java  | 98 +++-
 9 files changed, 149 insertions(+), 48 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/abafae35/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
index 17f08c4..dd895dc 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
@@ -475,7 +475,7 @@ public class AlterTableIT extends ParallelStatsDisabledIT {
 stmt.execute();
 fail("Should have failed since altering a table by adding a 
non-nullable column is not allowed.");
 } catch (SQLException e) {
-
assertEquals(SQLExceptionCode.CANNOT_ADD_NOT_NULLABLE_COLUMN.getErrorCode(), 
e.getErrorCode());
+
assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(), 
e.getErrorCode());
 } finally {
 closeStatement(stmt);
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/abafae35/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
index 1abc653..491889d 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
@@ -36,7 +36,6 @@ import java.util.Properties;
 
 import org.apache.hadoop.hbase.HColumnDescriptor;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
-import 
org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.GlobalPermissionOrBuilder;
 import org.apache.hadoop.hbase.regionserver.BloomType;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.exception.SQLExceptionCode;
@@ -416,7 +415,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column ENTRY_POINT_NAME has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }
@@ -432,7 +431,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column V has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/abafae35/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
index 9a3724e..be7e90c 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
+++ 

Build failed in Jenkins: Phoenix-4.x-HBase-1.1 #665

2018-02-14 Thread Apache Jenkins Server
See 


Changes:

[jtaylor] PHOENIX-2566 Support NOT NULL constraint for any column for immutable

--
[...truncated 49.18 KB...]
at 
org.apache.phoenix.compile.QueryCompilerTest.testAlterNotNull(QueryCompilerTest.java:1059)

[ERROR] 
testNullAlterTableDefaultRemoved(org.apache.phoenix.compile.QueryCompilerTest)  
Time elapsed: 0.004 s  <<< ERROR!
java.lang.NullPointerException
at 
org.apache.phoenix.compile.QueryCompilerTest.testNullAlterTableDefaultRemoved(QueryCompilerTest.java:2662)

[ERROR] 
testDescVarbinaryNotSupported(org.apache.phoenix.compile.QueryCompilerTest)  
Time elapsed: 0.004 s  <<< ERROR!
java.lang.NullPointerException
at 
org.apache.phoenix.compile.QueryCompilerTest.testDescVarbinaryNotSupported(QueryCompilerTest.java:1646)

[INFO] Running org.apache.phoenix.execute.DescVarLengthFastByteComparisonsTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in 
org.apache.phoenix.execute.DescVarLengthFastByteComparisonsTest
[INFO] Running org.apache.phoenix.execute.LiteralResultIteratorPlanTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.158 s 
- in org.apache.phoenix.execute.CorrelatePlanTest
[INFO] Running org.apache.phoenix.hbase.index.covered.CoveredColumnsTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s 
- in org.apache.phoenix.hbase.index.covered.CoveredColumnsTest
[INFO] Running org.apache.phoenix.hbase.index.covered.TestColumnTracker
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 s 
- in org.apache.phoenix.execute.UnnestArrayPlanTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s 
- in org.apache.phoenix.hbase.index.covered.TestColumnTracker
[INFO] Running org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
[INFO] Running org.apache.phoenix.hbase.index.covered.data.TestLocalTable
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s 
- in org.apache.phoenix.hbase.index.covered.data.TestLocalTable
[INFO] Running 
org.apache.phoenix.hbase.index.covered.filter.TestNewerTimestampFilter
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 s 
- in org.apache.phoenix.execute.MutationStateTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 s 
- in org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s 
- in org.apache.phoenix.hbase.index.covered.filter.TestNewerTimestampFilter
[INFO] Running 
org.apache.phoenix.hbase.index.covered.filter.TestApplyAndFilterDeletesFilter
[INFO] Running 
org.apache.phoenix.hbase.index.covered.TestCoveredColumnIndexCodec
[INFO] Running 
org.apache.phoenix.hbase.index.covered.TestCoveredIndexSpecifierBuilder
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s 
- in org.apache.phoenix.hbase.index.covered.TestCoveredIndexSpecifierBuilder
[INFO] Running org.apache.phoenix.hbase.index.covered.LocalTableStateTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 s 
- in 
org.apache.phoenix.hbase.index.covered.filter.TestApplyAndFilterDeletesFilter
[INFO] Running org.apache.phoenix.hbase.index.covered.NonTxIndexBuilderTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 s 
- in org.apache.phoenix.hbase.index.covered.TestCoveredColumnIndexCodec
[INFO] Running 
org.apache.phoenix.hbase.index.covered.update.TestIndexUpdateManager
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 s 
- in org.apache.phoenix.hbase.index.covered.update.TestIndexUpdateManager
[INFO] Running org.apache.phoenix.hbase.index.parallel.TestThreadPoolBuilder
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 s 
- in org.apache.phoenix.hbase.index.parallel.TestThreadPoolBuilder
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.185 s 
- in org.apache.phoenix.execute.LiteralResultIteratorPlanTest
[INFO] Running org.apache.phoenix.hbase.index.parallel.TestThreadPoolManager
[INFO] Running org.apache.phoenix.hbase.index.write.TestParalleIndexWriter
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 s - 
in org.apache.phoenix.hbase.index.parallel.TestThreadPoolManager
[INFO] Running org.apache.phoenix.hbase.index.write.TestWALRecoveryCaching
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.006 
s - in org.apache.phoenix.hbase.index.write.TestWALRecoveryCaching
[INFO] Running 
org.apache.phoenix.hbase.index.write.recovery.TestPerRegionIndexWriteCache
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.622 s 
- in org.apache.phoenix.jdbc.PhoenixResultSetMetadataTest
[INFO] Running 

phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 877350c78 -> 05653cf11


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 05653cf119bdd2d2ba839537103aa2669067dae7
Parents: 877350c
Author: James Taylor 
Authored: Tue Feb 13 23:14:58 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 19:42:49 2018 -0800

--
 .../apache/phoenix/end2end/AlterTableIT.java|  2 +-
 .../apache/phoenix/end2end/CreateTableIT.java   |  5 +-
 .../apache/phoenix/compile/UpsertCompiler.java  | 38 
 .../phoenix/exception/SQLExceptionCode.java |  5 +-
 .../apache/phoenix/schema/MetaDataClient.java   | 36 +++
 .../org/apache/phoenix/schema/PColumnImpl.java  |  6 +-
 .../org/apache/phoenix/schema/PTableImpl.java   |  1 -
 .../org/apache/phoenix/util/SchemaUtil.java |  6 ++
 .../phoenix/compile/QueryCompilerTest.java  | 98 +++-
 9 files changed, 149 insertions(+), 48 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/05653cf1/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
index 5265b09..d999f6a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
@@ -475,7 +475,7 @@ public class AlterTableIT extends ParallelStatsDisabledIT {
 stmt.execute();
 fail("Should have failed since altering a table by adding a 
non-nullable column is not allowed.");
 } catch (SQLException e) {
-
assertEquals(SQLExceptionCode.CANNOT_ADD_NOT_NULLABLE_COLUMN.getErrorCode(), 
e.getErrorCode());
+
assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(), 
e.getErrorCode());
 } finally {
 closeStatement(stmt);
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/05653cf1/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
index 1abc653..491889d 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
@@ -36,7 +36,6 @@ import java.util.Properties;
 
 import org.apache.hadoop.hbase.HColumnDescriptor;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
-import 
org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.GlobalPermissionOrBuilder;
 import org.apache.hadoop.hbase.regionserver.BloomType;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.exception.SQLExceptionCode;
@@ -416,7 +415,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column ENTRY_POINT_NAME has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }
@@ -432,7 +431,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column V has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/05653cf1/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
index 9a3724e..be7e90c 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
+++ 

phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 a93ed98e0 -> 6c0a83b39


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table


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

Branch: refs/heads/4.x-HBase-1.2
Commit: 6c0a83b39676fe906a2debf77f8ac5ba11b62815
Parents: a93ed98
Author: James Taylor 
Authored: Tue Feb 13 23:14:58 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 19:29:00 2018 -0800

--
 .../apache/phoenix/end2end/AlterTableIT.java|  2 +-
 .../apache/phoenix/end2end/CreateTableIT.java   |  5 +-
 .../apache/phoenix/compile/UpsertCompiler.java  | 38 
 .../phoenix/exception/SQLExceptionCode.java |  5 +-
 .../apache/phoenix/schema/MetaDataClient.java   | 36 +++
 .../org/apache/phoenix/schema/PColumnImpl.java  |  6 +-
 .../org/apache/phoenix/schema/PTableImpl.java   |  1 -
 .../org/apache/phoenix/util/SchemaUtil.java |  6 ++
 .../phoenix/compile/QueryCompilerTest.java  | 98 +++-
 9 files changed, 149 insertions(+), 48 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/6c0a83b3/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
index 17f08c4..dd895dc 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
@@ -475,7 +475,7 @@ public class AlterTableIT extends ParallelStatsDisabledIT {
 stmt.execute();
 fail("Should have failed since altering a table by adding a 
non-nullable column is not allowed.");
 } catch (SQLException e) {
-
assertEquals(SQLExceptionCode.CANNOT_ADD_NOT_NULLABLE_COLUMN.getErrorCode(), 
e.getErrorCode());
+
assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(), 
e.getErrorCode());
 } finally {
 closeStatement(stmt);
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/6c0a83b3/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
index 1abc653..491889d 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
@@ -36,7 +36,6 @@ import java.util.Properties;
 
 import org.apache.hadoop.hbase.HColumnDescriptor;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
-import 
org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.GlobalPermissionOrBuilder;
 import org.apache.hadoop.hbase.regionserver.BloomType;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.exception.SQLExceptionCode;
@@ -416,7 +415,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column ENTRY_POINT_NAME has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }
@@ -432,7 +431,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column V has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/6c0a83b3/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
index 9a3724e..be7e90c 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
+++ 

phoenix git commit: PHOENIX-2566 Support NOT NULL constraint for any column for immutable table

2018-02-14 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/master dabc8ae4b -> cc3c952b3


PHOENIX-2566 Support NOT NULL constraint for any column for immutable table


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

Branch: refs/heads/master
Commit: cc3c952b3f323d9a0ae6274e896b9e884d44d458
Parents: dabc8ae
Author: James Taylor 
Authored: Tue Feb 13 23:14:58 2018 -0800
Committer: James Taylor 
Committed: Wed Feb 14 19:27:21 2018 -0800

--
 .../apache/phoenix/end2end/AlterTableIT.java|  2 +-
 .../apache/phoenix/end2end/CreateTableIT.java   |  5 +-
 .../apache/phoenix/compile/UpsertCompiler.java  | 38 
 .../phoenix/exception/SQLExceptionCode.java |  5 +-
 .../apache/phoenix/schema/MetaDataClient.java   | 36 +++
 .../org/apache/phoenix/schema/PColumnImpl.java  |  6 +-
 .../org/apache/phoenix/schema/PTableImpl.java   |  1 -
 .../org/apache/phoenix/util/SchemaUtil.java |  6 ++
 .../phoenix/compile/QueryCompilerTest.java  | 98 +++-
 9 files changed, 149 insertions(+), 48 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/cc3c952b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
index 17f08c4..dd895dc 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableIT.java
@@ -475,7 +475,7 @@ public class AlterTableIT extends ParallelStatsDisabledIT {
 stmt.execute();
 fail("Should have failed since altering a table by adding a 
non-nullable column is not allowed.");
 } catch (SQLException e) {
-
assertEquals(SQLExceptionCode.CANNOT_ADD_NOT_NULLABLE_COLUMN.getErrorCode(), 
e.getErrorCode());
+
assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(), 
e.getErrorCode());
 } finally {
 closeStatement(stmt);
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/cc3c952b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
index 1abc653..491889d 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
@@ -36,7 +36,6 @@ import java.util.Properties;
 
 import org.apache.hadoop.hbase.HColumnDescriptor;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
-import 
org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.GlobalPermissionOrBuilder;
 import org.apache.hadoop.hbase.regionserver.BloomType;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.exception.SQLExceptionCode;
@@ -416,7 +415,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column ENTRY_POINT_NAME has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }
@@ -432,7 +431,7 @@ public class CreateTableIT extends ParallelStatsDisabledIT {
 conn.createStatement().execute(ddl);
 fail(" Non pk column V has a NOT NULL constraint");
 } catch (SQLException sqle) {
-
assertEquals(SQLExceptionCode.INVALID_NOT_NULL_CONSTRAINT.getErrorCode(),
+assertEquals(SQLExceptionCode.KEY_VALUE_NOT_NULL.getErrorCode(),
 sqle.getErrorCode());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/cc3c952b/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
index 9a3724e..be7e90c 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
@@ 

svn commit: r1824277 - in /phoenix/site: publish/language/datatypes.html publish/language/functions.html publish/language/index.html publish/server.html source/src/site/markdown/server.md

2018-02-14 Thread elserj
Author: elserj
Date: Thu Feb 15 03:01:19 2018
New Revision: 1824277

URL: http://svn.apache.org/viewvc?rev=1824277=rev
Log:
PHOENIX-4533 Update documentation for PQS SPNEGO configuration changes

Modified:
phoenix/site/publish/language/datatypes.html
phoenix/site/publish/language/functions.html
phoenix/site/publish/language/index.html
phoenix/site/publish/server.html
phoenix/site/source/src/site/markdown/server.md

Modified: phoenix/site/publish/language/datatypes.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/language/datatypes.html?rev=1824277=1824276=1824277=diff
==
--- phoenix/site/publish/language/datatypes.html (original)
+++ phoenix/site/publish/language/datatypes.html Thu Feb 15 03:01:19 2018
@@ -1,7 +1,7 @@
 
 
 
 

Modified: phoenix/site/publish/language/functions.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/language/functions.html?rev=1824277=1824276=1824277=diff
==
--- phoenix/site/publish/language/functions.html (original)
+++ phoenix/site/publish/language/functions.html Thu Feb 15 03:01:19 2018
@@ -1,7 +1,7 @@
 
 
 
 

Modified: phoenix/site/publish/language/index.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/language/index.html?rev=1824277=1824276=1824277=diff
==
--- phoenix/site/publish/language/index.html (original)
+++ phoenix/site/publish/language/index.html Thu Feb 15 03:01:19 2018
@@ -1,7 +1,7 @@
 
 
 
 

Modified: phoenix/site/publish/server.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/server.html?rev=1824277=1824276=1824277=diff
==
--- phoenix/site/publish/server.html (original)
+++ phoenix/site/publish/server.html Thu Feb 15 03:01:19 2018
@@ -1,7 +1,7 @@
 
 
 
 
@@ -290,7 +290,17 @@ log4j.logger.org.eclipse.jetty.server=IN
 
 
 phoenix.queryserver.kerberos.principal 
-The kerberos principal to use when 
authenticating. 
+The kerberos principal to use when 
authenticating. If phoenix.queryserver.kerberos.http.principal is not 
configured, this principal specified will be also used to both authenticate 
SPNEGO connections and to connect to HBase. 
+unset 
+
+
+phoenix.queryserver.http.keytab.file 
+The keytab file to use for authenticating 
SPNEGO connections. This configuration MUST be specified if 
phoenix.queryserver.kerberos.http.principal is configured. 
phoenix.queryserver.keytab.file will be used if this property is 
undefined. 
+unset 
+
+
+phoenix.queryserver.kerberos.http.principal 
+The kerberos principal to use when 
authenticating SPNEGO connections. phoenix.queryserver.kerberos.principal will 
be used if this property is undefined. 
 unset 
 
 

Modified: phoenix/site/source/src/site/markdown/server.md
URL: 
http://svn.apache.org/viewvc/phoenix/site/source/src/site/markdown/server.md?rev=1824277=1824276=1824277=diff
==
--- phoenix/site/source/src/site/markdown/server.md (original)
+++ phoenix/site/source/src/site/markdown/server.md Thu Feb 15 03:01:19 2018
@@ -170,7 +170,22 @@ configuration.
 
 
   phoenix.queryserver.kerberos.principal
-  The kerberos principal to use when 
authenticating.
+  The kerberos principal to use when 
authenticating. If
+  phoenix.queryserver.kerberos.http.principal is not configured, this 
principal specified will be also used to
+  both authenticate SPNEGO connections and to connect to HBase.
+  unset
+
+
+  phoenix.queryserver.http.keytab.file
+  The keytab file to use for authenticating 
SPNEGO connections. This configuration MUST be specified if
+  phoenix.queryserver.kerberos.http.principal is configured. 
phoenix.queryserver.keytab.file will be used if this
+  property is undefined.
+  unset
+
+
+  phoenix.queryserver.kerberos.http.principal
+  The kerberos principal to use when 
authenticating SPNEGO connections.
+  phoenix.queryserver.kerberos.principal will be used if this property is 
undefined.
   unset
 
 




[phoenix] Git Push Summary

2018-02-14 Thread elserj
Repository: phoenix
Updated Branches:
  refs/heads/5.0.0-HBase-2.0 [deleted] a2053c1d3


[phoenix] Git Push Summary

2018-02-14 Thread elserj
Repository: phoenix
Updated Tags:  refs/tags/v5.0.0-alpha-HBase-2.0 [created] 286b2b1e8


svn commit: r25079 - /dev/phoenix/apache-phoenix-5.0.0-alpha-HBase-2.0-rc1/ /release/phoenix/apache-phoenix-5.0.0-alpha-HBase-2.0/

2018-02-14 Thread elserj
Author: elserj
Date: Wed Feb 14 23:45:23 2018
New Revision: 25079

Log:
Release 5.0.0-alpha

Added:
release/phoenix/apache-phoenix-5.0.0-alpha-HBase-2.0/
  - copied from r25078, 
dev/phoenix/apache-phoenix-5.0.0-alpha-HBase-2.0-rc1/
Removed:
dev/phoenix/apache-phoenix-5.0.0-alpha-HBase-2.0-rc1/



Build failed in Jenkins: Phoenix Compile Compatibility with HBase #548

2018-02-14 Thread Apache Jenkins Server
See 


--
Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on H26 (ubuntu xenial) in workspace 

FATAL: Unable to produce a script file
Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to H26
at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
at hudson.remoting.Channel.call(Channel.java:908)
at hudson.FilePath.act(FilePath.java:986)
at hudson.FilePath.act(FilePath.java:975)
at hudson.FilePath.createTextTempFile(FilePath.java:1363)
at 
hudson.tasks.CommandInterpreter.createScriptFile(CommandInterpreter.java:162)
at 
hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:94)
at 
hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
at 
hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1724)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at 
hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
java.io.IOException: No space left on device
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:326)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:316)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:149)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:233)
at hudson.FilePath$17.invoke(FilePath.java:1380)
at hudson.FilePath$17.invoke(FilePath.java:1363)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2760)
at hudson.remoting.UserRequest.perform(UserRequest.java:207)
at hudson.remoting.UserRequest.perform(UserRequest.java:53)
at hudson.remoting.Request$2.run(Request.java:358)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused: java.io.IOException: remote file operation failed: 
 at 
hudson.remoting.Channel@693021f0:H26
at hudson.FilePath.act(FilePath.java:993)
at hudson.FilePath.act(FilePath.java:975)
at hudson.FilePath.createTextTempFile(FilePath.java:1363)
Caused: java.io.IOException: Failed to create a temp file on 

at hudson.FilePath.createTextTempFile(FilePath.java:1386)
at 
hudson.tasks.CommandInterpreter.createScriptFile(CommandInterpreter.java:162)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:94)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1724)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Build step 'Execute shell' marked build as failure


Jenkins build is back to normal : Phoenix | 4.x-HBase-0.98 #1817

2018-02-14 Thread Apache Jenkins Server
See