Apache-Phoenix | 4.0 | Hadoop1 | Build Successful

2014-09-26 Thread Apache Jenkins Server
4.0 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastCompletedBuild/testReport/

Changes
[ramkrishna] Phoenix-1264 Add StatisticsCollector to existing tables on first



Apache-Phoenix | Master | Hadoop1 | Build Successful

2014-09-26 Thread Apache Jenkins Server
Master branch build status Successful
Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

Last Successful Compiled Artifacts https://builds.apache.org/job/Phoenix-master-hadoop1/lastSuccessfulBuild/artifact/

Last Complete Test Report https://builds.apache.org/job/Phoenix-master-hadoop1/lastCompletedBuild/testReport/

Changes
[ramkrishna] Phoenix-1264 : Add StatisticsCollector to existing tables on first



Jenkins build is back to normal : Phoenix | 4.0 | Hadoop2 #168

2014-09-26 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-4.0-hadoop2/168/changes



git commit: Added custom annotations to logs in query-related functionality in client- and server-side code for PHOENIX-1198

2014-09-26 Thread elilevine
Repository: phoenix
Updated Branches:
  refs/heads/master 6b0461002 - 3acedb726


Added custom annotations to logs in query-related functionality in client- and 
server-side code for PHOENIX-1198


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

Branch: refs/heads/master
Commit: 3acedb7262dbf5241e443a2769565e6750b4ac14
Parents: 6b04610
Author: Eli Levine elilev...@apache.org
Authored: Fri Sep 26 10:47:33 2014 -0700
Committer: Eli Levine elilev...@apache.org
Committed: Fri Sep 26 10:47:33 2014 -0700

--
 .../apache/phoenix/cache/ServerCacheClient.java | 18 +++--
 .../apache/phoenix/compile/FromCompiler.java|  3 +-
 .../coprocessor/BaseScannerRegionObserver.java  |  5 +++
 .../GroupedAggregateRegionObserver.java | 39 +++-
 .../UngroupedAggregateRegionObserver.java   |  7 ++--
 .../apache/phoenix/execute/BaseQueryPlan.java   | 15 
 .../apache/phoenix/execute/HashJoinPlan.java|  5 +--
 .../apache/phoenix/execute/MutationState.java   | 12 +++---
 .../phoenix/iterate/ChunkedResultIterator.java  | 14 +--
 .../phoenix/iterate/ConcatResultIterator.java   |  5 +++
 .../DefaultParallelIteratorRegionSplitter.java  |  3 +-
 .../DistinctAggregatingResultIterator.java  |  7 
 .../FilterAggregatingResultIterator.java|  6 +++
 .../phoenix/iterate/FilterResultIterator.java   |  6 +++
 .../GroupedAggregatingResultIterator.java   |  7 
 .../phoenix/iterate/LimitingResultIterator.java |  5 +++
 .../iterate/MergeSortRowKeyResultIterator.java  |  6 +++
 .../iterate/MergeSortTopNResultIterator.java|  7 
 .../phoenix/iterate/OrderedResultIterator.java  | 10 +
 .../phoenix/iterate/ParallelIterators.java  |  8 +++-
 .../iterate/RegionScannerResultIterator.java|  5 +++
 .../phoenix/iterate/ScanningResultIterator.java |  5 +++
 .../phoenix/iterate/SequenceResultIterator.java |  6 +++
 .../phoenix/iterate/TableResultIterator.java|  6 +++
 .../UngroupedAggregatingResultIterator.java |  6 +++
 .../query/ConnectionQueryServicesImpl.java  |  1 -
 .../apache/phoenix/schema/MetaDataClient.java   |  7 ++--
 .../org/apache/phoenix/trace/TraceReader.java   |  2 +-
 .../apache/phoenix/trace/TracingIterator.java   |  5 +++
 .../java/org/apache/phoenix/util/LogUtil.java   | 27 --
 .../java/org/apache/phoenix/util/ScanUtil.java  | 10 +
 .../org/apache/phoenix/util/LogUtilTest.java| 27 +++---
 32 files changed, 231 insertions(+), 64 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/3acedb72/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java 
b/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java
index 1301fb7..fa19881 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java
@@ -167,7 +167,7 @@ public class ServerCacheClient {
 if ( ! servers.contains(entry)  
 
keyRanges.intersect(entry.getRegionInfo().getStartKey(), 
entry.getRegionInfo().getEndKey())) {  // Call RPC once per server
 servers.add(entry);
-if (LOG.isDebugEnabled()) 
{LOG.debug(addCustomAnnotations(Adding cache entry to be sent for  + entry, 
connection.getCustomTracingAnnotations()));}
+if (LOG.isDebugEnabled()) 
{LOG.debug(addCustomAnnotations(Adding cache entry to be sent for  + entry, 
connection));}
 final byte[] key = entry.getRegionInfo().getStartKey();
 final HTableInterface htable = 
services.getTable(cacheUsingTableRef.getTable().getPhysicalName().getBytes());
 closeables.add(htable);
@@ -220,7 +220,7 @@ public class ServerCacheClient {
 }
 }));
 } else {
-if (LOG.isDebugEnabled()) 
{LOG.debug(addCustomAnnotations(NOT adding cache entry to be sent for  + 
entry +  since one already exists for that entry, 
connection.getCustomTracingAnnotations()));}
+if (LOG.isDebugEnabled()) 
{LOG.debug(addCustomAnnotations(NOT adding cache entry to be sent for  + 
entry +  since one already exists for that entry, connection));}
 }
 }
 
@@ -259,7 +259,7 @@ public class ServerCacheClient {
 }
 }
 }
-if (LOG.isDebugEnabled()) 

git commit: Added custom annotations to logs in query-related functionality in client- and server-side code for PHOENIX-1198

2014-09-26 Thread elilevine
Repository: phoenix
Updated Branches:
  refs/heads/4.0 4070492a9 - 4edfed646


Added custom annotations to logs in query-related functionality in client- and 
server-side code for PHOENIX-1198


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

Branch: refs/heads/4.0
Commit: 4edfed646f98e4065746020a5cfb3c354fc5bc45
Parents: 4070492
Author: Eli Levine elilev...@apache.org
Authored: Fri Sep 26 10:48:47 2014 -0700
Committer: Eli Levine elilev...@apache.org
Committed: Fri Sep 26 10:48:47 2014 -0700

--
 .../apache/phoenix/cache/ServerCacheClient.java | 18 +++--
 .../apache/phoenix/compile/FromCompiler.java|  3 +-
 .../coprocessor/BaseScannerRegionObserver.java  |  5 +++
 .../GroupedAggregateRegionObserver.java | 39 +++-
 .../UngroupedAggregateRegionObserver.java   |  7 ++--
 .../apache/phoenix/execute/BaseQueryPlan.java   | 15 
 .../apache/phoenix/execute/HashJoinPlan.java|  5 +--
 .../apache/phoenix/execute/MutationState.java   | 12 +++---
 .../phoenix/iterate/ChunkedResultIterator.java  | 14 +--
 .../phoenix/iterate/ConcatResultIterator.java   |  5 +++
 .../DefaultParallelIteratorRegionSplitter.java  |  3 +-
 .../DistinctAggregatingResultIterator.java  |  7 
 .../FilterAggregatingResultIterator.java|  6 +++
 .../phoenix/iterate/FilterResultIterator.java   |  6 +++
 .../GroupedAggregatingResultIterator.java   |  7 
 .../phoenix/iterate/LimitingResultIterator.java |  5 +++
 .../iterate/MergeSortRowKeyResultIterator.java  |  6 +++
 .../iterate/MergeSortTopNResultIterator.java|  7 
 .../phoenix/iterate/OrderedResultIterator.java  | 10 +
 .../phoenix/iterate/ParallelIterators.java  |  8 +++-
 .../iterate/RegionScannerResultIterator.java|  5 +++
 .../phoenix/iterate/ScanningResultIterator.java |  5 +++
 .../phoenix/iterate/SequenceResultIterator.java |  6 +++
 .../phoenix/iterate/TableResultIterator.java|  6 +++
 .../UngroupedAggregatingResultIterator.java |  6 +++
 .../query/ConnectionQueryServicesImpl.java  |  1 -
 .../apache/phoenix/schema/MetaDataClient.java   |  7 ++--
 .../org/apache/phoenix/trace/TraceReader.java   |  2 +-
 .../apache/phoenix/trace/TracingIterator.java   |  5 +++
 .../java/org/apache/phoenix/util/LogUtil.java   | 27 --
 .../java/org/apache/phoenix/util/ScanUtil.java  | 10 +
 .../org/apache/phoenix/util/LogUtilTest.java| 27 +++---
 32 files changed, 231 insertions(+), 64 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/4edfed64/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java 
b/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java
index 1301fb7..fa19881 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/cache/ServerCacheClient.java
@@ -167,7 +167,7 @@ public class ServerCacheClient {
 if ( ! servers.contains(entry)  
 
keyRanges.intersect(entry.getRegionInfo().getStartKey(), 
entry.getRegionInfo().getEndKey())) {  // Call RPC once per server
 servers.add(entry);
-if (LOG.isDebugEnabled()) 
{LOG.debug(addCustomAnnotations(Adding cache entry to be sent for  + entry, 
connection.getCustomTracingAnnotations()));}
+if (LOG.isDebugEnabled()) 
{LOG.debug(addCustomAnnotations(Adding cache entry to be sent for  + entry, 
connection));}
 final byte[] key = entry.getRegionInfo().getStartKey();
 final HTableInterface htable = 
services.getTable(cacheUsingTableRef.getTable().getPhysicalName().getBytes());
 closeables.add(htable);
@@ -220,7 +220,7 @@ public class ServerCacheClient {
 }
 }));
 } else {
-if (LOG.isDebugEnabled()) 
{LOG.debug(addCustomAnnotations(NOT adding cache entry to be sent for  + 
entry +  since one already exists for that entry, 
connection.getCustomTracingAnnotations()));}
+if (LOG.isDebugEnabled()) 
{LOG.debug(addCustomAnnotations(NOT adding cache entry to be sent for  + 
entry +  since one already exists for that entry, connection));}
 }
 }
 
@@ -259,7 +259,7 @@ public class ServerCacheClient {
 }
 }
 }
-if (LOG.isDebugEnabled()) 

Apache-Phoenix | 4.0 | Hadoop1 | Build Successful

2014-09-26 Thread Apache Jenkins Server
4.0 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastCompletedBuild/testReport/

Changes
[elilevine] Added custom annotations to logs in query-related functionality in client- and server-side code for PHOENIX-1198



Apache-Phoenix | Master | Hadoop1 | Build Successful

2014-09-26 Thread Apache Jenkins Server
Master branch build status Successful
Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

Last Successful Compiled Artifacts https://builds.apache.org/job/Phoenix-master-hadoop1/lastSuccessfulBuild/artifact/

Last Complete Test Report https://builds.apache.org/job/Phoenix-master-hadoop1/lastCompletedBuild/testReport/

Changes
[elilevine] Added custom annotations to logs in query-related functionality in client- and server-side code for PHOENIX-1198



Jenkins build is back to stable : Phoenix | 4.0 | Hadoop2 #170

2014-09-26 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-4.0-hadoop2/170/changes



Build failed in Jenkins: Phoenix | 4.0 | Hadoop2 #171

2014-09-26 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-4.0-hadoop2/171/

--
[...truncated 30042 lines...]
Tests run: 63, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 46.637 sec - 
in org.apache.phoenix.end2end.CaseStatementIT
Running org.apache.phoenix.end2end.SequenceIT
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.113 sec - 
in org.apache.phoenix.end2end.TenantSpecificTablesDDLIT
Running org.apache.phoenix.end2end.ClientTimeArithmeticQueryIT
Tests run: 49, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.817 sec - 
in org.apache.phoenix.end2end.SequenceIT
Running org.apache.phoenix.end2end.CastAndCoerceIT
Tests run: 49, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 43.435 sec - 
in org.apache.phoenix.end2end.CastAndCoerceIT
Running org.apache.phoenix.end2end.TopNIT
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.17 sec - in 
org.apache.phoenix.end2end.TopNIT
Running org.apache.phoenix.end2end.ArrayIT
Tests run: 119, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 75.533 sec - 
in org.apache.phoenix.end2end.ScanQueryIT
Running org.apache.phoenix.end2end.UpsertSelectIT
Tests run: 48, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.707 sec - 
in org.apache.phoenix.end2end.ArrayIT
Running org.apache.phoenix.end2end.IsNullIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.752 sec - in 
org.apache.phoenix.end2end.IsNullIT
Running org.apache.phoenix.end2end.CompareDecimalToLongIT
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.129 sec - in 
org.apache.phoenix.end2end.CompareDecimalToLongIT
Running org.apache.phoenix.end2end.DerivedTableIT
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 25.012 sec - 
in org.apache.phoenix.end2end.UpsertSelectIT
Running org.apache.phoenix.end2end.TruncateFunctionIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.787 sec - in 
org.apache.phoenix.end2end.TruncateFunctionIT
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.649 sec - 
in org.apache.phoenix.end2end.DerivedTableIT
Tests run: 182, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 159 sec - in 
org.apache.phoenix.end2end.QueryIT
Tests run: 203, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 122.381 sec - 
in org.apache.phoenix.end2end.ClientTimeArithmeticQueryIT

Results :

Tests run: 1179, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-failsafe-plugin:2.17:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] Failsafe report directory: 
https://builds.apache.org/job/Phoenix-4.0-hadoop2/ws/phoenix-core/target/failsafe-reports
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, 
useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, 
threadCountMethods=0, parallelOptimized=true

---
 T E S T S
---

---
 T E S T S
---
Running org.apache.phoenix.end2end.EncodeFunctionIT
Running org.apache.phoenix.end2end.RegexpSplitFunctionIT
Running org.apache.phoenix.end2end.LpadFunctionIT
Running org.apache.phoenix.end2end.StatementHintsIT
Running org.apache.phoenix.end2end.SpillableGroupByIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.035 sec - in 
org.apache.phoenix.end2end.StatementHintsIT
Running org.apache.phoenix.end2end.StatsCollectorIT
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.138 sec - in 
org.apache.phoenix.end2end.RegexpSplitFunctionIT
Running org.apache.phoenix.end2end.DynamicFamilyIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.862 sec - in 
org.apache.phoenix.end2end.SpillableGroupByIT
Running org.apache.phoenix.end2end.DeleteIT
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.987 sec - in 
org.apache.phoenix.end2end.LpadFunctionIT
Running org.apache.phoenix.end2end.RegexpSubstrFunctionIT
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.744 sec - in 
org.apache.phoenix.end2end.EncodeFunctionIT
Running org.apache.phoenix.end2end.SkipScanAfterManualSplitIT
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.061 sec - in 
org.apache.phoenix.end2end.DynamicFamilyIT
Running org.apache.phoenix.end2end.ModulusExpressionIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.534 sec - in 
org.apache.phoenix.end2end.StatsCollectorIT
Running org.apache.phoenix.end2end.RoundFloorCeilFunctionsEnd2EndIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.424 sec - in 
org.apache.phoenix.end2end.RegexpSubstrFunctionIT
Running org.apache.phoenix.end2end.ReverseScanIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.268 sec - in 
org.apache.phoenix.end2end.ReverseScanIT
Running org.apache.phoenix.end2end.QueryPlanIT
Tests run: 11, Failures: 0, 

git commit: PHOENIX-1298 Queries on fixed width type columns that have an index declared on them don't use that index (Samarth Jain)

2014-09-26 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.0 4edfed646 - 61fc6a6c0


PHOENIX-1298 Queries on fixed width type columns that have an index declared on 
them don't use that index (Samarth Jain)


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

Branch: refs/heads/4.0
Commit: 61fc6a6c042295efc3819c1af18d7d4c3e502014
Parents: 4edfed6
Author: James Taylor jtay...@salesforce.com
Authored: Fri Sep 26 21:18:42 2014 -0700
Committer: James Taylor jtay...@salesforce.com
Committed: Fri Sep 26 21:18:42 2014 -0700

--
 .../java/org/apache/phoenix/compile/WhereOptimizer.java  |  6 +-
 .../org/apache/phoenix/compile/QueryOptimizerTest.java   | 11 +++
 2 files changed, 12 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/61fc6a6c/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java
index 2b529cb..22594c9 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java
@@ -476,11 +476,7 @@ public class WhereOptimizer {
 for (int i = 0; i  childSlots.size(); i++) {
 KeySlots slots = childSlots.get(i);
 KeySlot keySlot = slots.iterator().next();
-ListExpression childExtractNodes = 
keySlot.getKeyPart().getExtractNodes();
-// If columns are not in PK order, then stop iteration
-if (childExtractNodes.size() != 1 || childExtractNodes.get(0) 
!= rvc.getChildren().get(i)) {
-break;
-}
+// Continue while we have consecutive pk columns
 if (position == -1) {
 position = initialPosition = keySlot.getPKPosition();
 } else if (keySlot.getPKPosition() != position) {

http://git-wip-us.apache.org/repos/asf/phoenix/blob/61fc6a6c/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java
--
diff --git 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java
index 3a92d73..45a61a7 100644
--- 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java
+++ 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java
@@ -41,6 +41,17 @@ public class QueryOptimizerTest extends 
BaseConnectionlessQueryTest {
 }
 
 @Test
+public void testRVCUsingPkColsReturnedByPlanShouldUseIndex() throws 
Exception {
+Connection conn = DriverManager.getConnection(getUrl());
+conn.createStatement().execute(CREATE TABLE T (k VARCHAR NOT NULL 
PRIMARY KEY, v1 CHAR(15), v2 VARCHAR));
+conn.createStatement().execute(CREATE INDEX IDX ON T(v1, v2));
+PhoenixStatement stmt = 
conn.createStatement().unwrap(PhoenixStatement.class);
+String query = select * from t where (v1, v2, k)  ('1', '2', '3');
+QueryPlan plan = stmt.optimizeQuery(query);
+assertEquals(IDX, 
plan.getTableRef().getTable().getTableName().getString());
+}
+
+@Test
 public void testOrderByOptimizedOut() throws Exception {
 Connection conn = DriverManager.getConnection(getUrl());
 conn.createStatement().execute(CREATE TABLE foo (k VARCHAR NOT NULL 
PRIMARY KEY, v VARCHAR) IMMUTABLE_ROWS=true);



git commit: PHOENIX-1298 Queries on fixed width type columns that have an index declared on them don't use that index (Samarth Jain)

2014-09-26 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/master 3acedb726 - 13742ae1f


PHOENIX-1298 Queries on fixed width type columns that have an index declared on 
them don't use that index (Samarth Jain)


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

Branch: refs/heads/master
Commit: 13742ae1f6a6d90774285d6cf51eb5a934688d50
Parents: 3acedb7
Author: James Taylor jtay...@salesforce.com
Authored: Fri Sep 26 21:18:42 2014 -0700
Committer: James Taylor jtay...@salesforce.com
Committed: Fri Sep 26 21:19:41 2014 -0700

--
 .../java/org/apache/phoenix/compile/WhereOptimizer.java  |  6 +-
 .../org/apache/phoenix/compile/QueryOptimizerTest.java   | 11 +++
 2 files changed, 12 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/13742ae1/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java
index 2b529cb..22594c9 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/WhereOptimizer.java
@@ -476,11 +476,7 @@ public class WhereOptimizer {
 for (int i = 0; i  childSlots.size(); i++) {
 KeySlots slots = childSlots.get(i);
 KeySlot keySlot = slots.iterator().next();
-ListExpression childExtractNodes = 
keySlot.getKeyPart().getExtractNodes();
-// If columns are not in PK order, then stop iteration
-if (childExtractNodes.size() != 1 || childExtractNodes.get(0) 
!= rvc.getChildren().get(i)) {
-break;
-}
+// Continue while we have consecutive pk columns
 if (position == -1) {
 position = initialPosition = keySlot.getPKPosition();
 } else if (keySlot.getPKPosition() != position) {

http://git-wip-us.apache.org/repos/asf/phoenix/blob/13742ae1/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java
--
diff --git 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java
index 3a92d73..45a61a7 100644
--- 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java
+++ 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/QueryOptimizerTest.java
@@ -41,6 +41,17 @@ public class QueryOptimizerTest extends 
BaseConnectionlessQueryTest {
 }
 
 @Test
+public void testRVCUsingPkColsReturnedByPlanShouldUseIndex() throws 
Exception {
+Connection conn = DriverManager.getConnection(getUrl());
+conn.createStatement().execute(CREATE TABLE T (k VARCHAR NOT NULL 
PRIMARY KEY, v1 CHAR(15), v2 VARCHAR));
+conn.createStatement().execute(CREATE INDEX IDX ON T(v1, v2));
+PhoenixStatement stmt = 
conn.createStatement().unwrap(PhoenixStatement.class);
+String query = select * from t where (v1, v2, k)  ('1', '2', '3');
+QueryPlan plan = stmt.optimizeQuery(query);
+assertEquals(IDX, 
plan.getTableRef().getTable().getTableName().getString());
+}
+
+@Test
 public void testOrderByOptimizedOut() throws Exception {
 Connection conn = DriverManager.getConnection(getUrl());
 conn.createStatement().execute(CREATE TABLE foo (k VARCHAR NOT NULL 
PRIMARY KEY, v VARCHAR) IMMUTABLE_ROWS=true);



Build failed in Jenkins: Phoenix | 4.0 | Hadoop1 #338

2014-09-26 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-4.0-hadoop1/338/changes

Changes:

[jtaylor] PHOENIX-1298 Queries on fixed width type columns that have an index 
declared on them don't use that index (Samarth Jain)

--
[...truncated 371 lines...]
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.115 sec - in 
org.apache.phoenix.jdbc.PhoenixDriverTest
Running org.apache.phoenix.util.JDBCUtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.util.JDBCUtilTest
Running org.apache.phoenix.util.ScanUtilTest
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec - in 
org.apache.phoenix.util.ScanUtilTest
Running org.apache.phoenix.util.PhoenixRuntimeTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.915 sec - in 
org.apache.phoenix.hbase.index.write.recovery.TestPerRegionIndexWriteCache
Running org.apache.phoenix.util.csv.CsvUpsertExecutorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.143 sec - in 
org.apache.phoenix.util.PhoenixRuntimeTest
Running org.apache.phoenix.util.csv.StringToArrayConverterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.256 sec - in 
org.apache.phoenix.util.csv.CsvUpsertExecutorTest
Running org.apache.phoenix.util.LikeExpressionTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in 
org.apache.phoenix.util.LikeExpressionTest
Running org.apache.phoenix.util.PhoenixContextExecutorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in 
org.apache.phoenix.util.PhoenixContextExecutorTest
Running org.apache.phoenix.util.LogUtilTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.187 sec - in 
org.apache.phoenix.util.csv.StringToArrayConverterTest
Running org.apache.phoenix.util.StringUtilTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in 
org.apache.phoenix.util.StringUtilTest
Running org.apache.phoenix.util.DateUtilTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.util.DateUtilTest
Running org.apache.phoenix.util.ByteUtilTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.073 sec - in 
org.apache.phoenix.util.LogUtilTest
Running org.apache.phoenix.util.PropertiesUtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.util.PropertiesUtilTest
Running org.apache.phoenix.util.Base62EncoderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec - in 
org.apache.phoenix.util.Base62EncoderTest
Running org.apache.phoenix.util.QueryUtilTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.088 sec - in 
org.apache.phoenix.util.QueryUtilTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.115 sec - in 
org.apache.phoenix.util.ByteUtilTest
Running org.apache.phoenix.util.SequenceUtilTest
Running org.apache.phoenix.util.ColumnInfoTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in 
org.apache.phoenix.util.ColumnInfoTest
Running org.apache.phoenix.util.MetaDataUtilTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in 
org.apache.phoenix.util.SequenceUtilTest
Running org.apache.phoenix.parse.QueryParserTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec - in 
org.apache.phoenix.util.MetaDataUtilTest
Tests run: 46, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec - in 
org.apache.phoenix.parse.QueryParserTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 6.022 sec - in 
org.apache.phoenix.memory.MemoryManagerTest

Results :

Tests run: 807, Failures: 0, Errors: 0, Skipped: 3

[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ 
phoenix-core ---
[INFO] Building jar: 
https://builds.apache.org/job/Phoenix-4.0-hadoop1/338/artifact/phoenix-core/target/phoenix-core-4.2.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ phoenix-core ---
[INFO] Building jar: 
https://builds.apache.org/job/Phoenix-4.0-hadoop1/338/artifact/phoenix-core/target/phoenix-core-4.2.0-SNAPSHOT-tests.jar
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ phoenix-core ---
[INFO] Building jar: 
https://builds.apache.org/job/Phoenix-4.0-hadoop1/338/artifact/phoenix-core/target/phoenix-core-4.2.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ 
phoenix-core ---
[INFO] 
[INFO] --- maven-assembly-plugin:2.4:single (core) @ phoenix-core ---
[INFO] Reading assembly descriptor: src/build/phoenix-core.xml
[WARNING] Artifact: org.apache.phoenix:phoenix-core:jar:4.2.0-SNAPSHOT 
references the same file as the assembly destination file. Moving it to a 
temporary location for inclusion.
[INFO] Building jar: 

git commit: Increasing memory a little bit

2014-09-26 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.0 61fc6a6c0 - ab2813b66


Increasing memory a little bit


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

Branch: refs/heads/4.0
Commit: ab2813b66eb46e0332d9cceb7d2ef23d0941d996
Parents: 61fc6a6
Author: James Taylor jtay...@salesforce.com
Authored: Fri Sep 26 21:33:21 2014 -0700
Committer: James Taylor jtay...@salesforce.com
Committed: Fri Sep 26 21:33:21 2014 -0700

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/ab2813b6/pom.xml
--
diff --git a/pom.xml b/pom.xml
index f9b9cad..fae2a5e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -250,7 +250,7 @@
  encodingUTF-8/encoding
  forkCount${numForkedIT}/forkCount
  reuseForkstrue/reuseForks
- argLine-enableassertions -Xmx2000m -XX:MaxPermSize=128m 
-Djava.security.egd=file:/dev/./urandom/argLine
+ argLine-enableassertions -Xmx2250m -XX:MaxPermSize=128m 
-Djava.security.egd=file:/dev/./urandom/argLine
  
redirectTestOutputToFile${test.output.tofile}/redirectTestOutputToFile
  
testSourceDirectory${basedir}/src/it/java/testSourceDirectory
  
groupsorg.apache.phoenix.end2end.ClientManagedTimeTest/groups



git commit: Ensure max memory allocation is same for 3.0 and 4.0 for test runs

2014-09-26 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/3.0 376dd1505 - 3719b6db3


Ensure max memory allocation is same for 3.0 and 4.0 for test runs


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

Branch: refs/heads/3.0
Commit: 3719b6db3c81bb751fdd895e9f4ef5559edf0067
Parents: 376dd15
Author: James Taylor jtay...@salesforce.com
Authored: Fri Sep 26 21:37:32 2014 -0700
Committer: James Taylor jtay...@salesforce.com
Committed: Fri Sep 26 21:37:32 2014 -0700

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/3719b6db/pom.xml
--
diff --git a/pom.xml b/pom.xml
index cfc0cba..19bb1e0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -247,7 +247,7 @@
   encodingUTF-8/encoding
   forkCount${numForkedIT}/forkCount
   reuseForkstrue/reuseForks
-  argLine-enableassertions -Xmx3000m -XX:MaxPermSize=128m 
-Djava.security.egd=file:/dev/./urandom/argLine
+  argLine-enableassertions -Xmx2250m -XX:MaxPermSize=128m 
-Djava.security.egd=file:/dev/./urandom/argLine
   
redirectTestOutputToFile${test.output.tofile}/redirectTestOutputToFile
   
testSourceDirectory${basedir}/src/it/java/testSourceDirectory
   
groupsorg.apache.phoenix.end2end.HBaseManagedTimeTest/groups



Build failed in Jenkins: Phoenix | 3.0 | Hadoop1 #228

2014-09-26 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-3.0-hadoop1/228/changes

Changes:

[jtaylor] PHOENIX-1298 Queries on fixed width type columns that have an index 
declared on them don't use that index (Samarth Jain)

--
[...truncated 443 lines...]
Running org.apache.phoenix.end2end.FirstValueFunctionIT
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.588 sec - in 
org.apache.phoenix.end2end.LpadFunctionIT
Running org.apache.phoenix.end2end.RegexpSplitFunctionIT
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.516 sec - in 
org.apache.phoenix.end2end.FirstValueFunctionIT
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.065 sec - in 
org.apache.phoenix.end2end.RegexpSplitFunctionIT
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.4 sec - in 
org.apache.phoenix.end2end.ArithmeticQueryIT
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.787 sec - 
in org.apache.phoenix.end2end.DeleteIT

Results :

Tests run: 412, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-failsafe-plugin:2.17:integration-test (ClientManagedTimeTests) 
@ phoenix-core ---
[INFO] Failsafe report directory: 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/target/failsafe-reports
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, 
useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, 
threadCountMethods=0, parallelOptimized=true

---
 T E S T S
---

---
 T E S T S
---
Running org.apache.phoenix.end2end.SequenceIT
Running org.apache.phoenix.end2end.UpsertValuesIT
Running org.apache.phoenix.end2end.ToNumberFunctionIT
Running org.apache.phoenix.end2end.IsNullIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.17 sec - in 
org.apache.phoenix.end2end.IsNullIT
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.318 sec - in 
org.apache.phoenix.end2end.ToNumberFunctionIT
Running org.apache.phoenix.end2end.InMemoryOrderByIT
Running org.apache.phoenix.end2end.NativeHBaseTypesIT
Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 6.081 sec - in 
org.apache.phoenix.end2end.InMemoryOrderByIT
Running org.apache.phoenix.end2end.TenantSpecificTablesDDLIT
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.162 sec - in 
org.apache.phoenix.end2end.NativeHBaseTypesIT
Running org.apache.phoenix.end2end.ClientTimeArithmeticQueryIT
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.082 sec - 
in org.apache.phoenix.end2end.UpsertValuesIT
Running org.apache.phoenix.end2end.TruncateFunctionIT
Tests run: 49, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.477 sec - 
in org.apache.phoenix.end2end.SequenceIT
Running org.apache.phoenix.end2end.DerivedTableIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.463 sec - in 
org.apache.phoenix.end2end.TruncateFunctionIT
Running org.apache.phoenix.end2end.QueryIT
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.764 sec - 
in org.apache.phoenix.end2end.DerivedTableIT
Running org.apache.phoenix.end2end.GroupByIT
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 42.166 sec - 
in org.apache.phoenix.end2end.TenantSpecificTablesDDLIT
Running org.apache.phoenix.end2end.SpooledOrderByIT
Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 4.862 sec - in 
org.apache.phoenix.end2end.SpooledOrderByIT
Running org.apache.phoenix.end2end.VariableLengthPKIT
Tests run: 116, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 61.638 sec - 
in org.apache.phoenix.end2end.ClientTimeArithmeticQueryIT
Running org.apache.phoenix.end2end.ScanQueryIT
Tests run: 52, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 37.808 sec - 
in org.apache.phoenix.end2end.GroupByIT
Running org.apache.phoenix.end2end.DynamicColumnIT
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.485 sec - in 
org.apache.phoenix.end2end.DynamicColumnIT
Running org.apache.phoenix.end2end.TenantSpecificTablesDMLIT
Tests run: 50, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.493 sec - 
in org.apache.phoenix.end2end.VariableLengthPKIT
Running org.apache.phoenix.end2end.DynamicUpsertIT
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.647 sec - in 
org.apache.phoenix.end2end.DynamicUpsertIT
Running org.apache.phoenix.end2end.ExtendedQueryExecIT
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.402 sec - in 
org.apache.phoenix.end2end.ExtendedQueryExecIT
Running org.apache.phoenix.end2end.DefaultParallelIteratorsRegionSplitterIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.912 sec - in 
org.apache.phoenix.end2end.DefaultParallelIteratorsRegionSplitterIT
Running 

Build failed in Jenkins: Phoenix | 3.0 | Hadoop1 #229

2014-09-26 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-3.0-hadoop1/229/changes

Changes:

[jtaylor] Ensure max memory allocation is same for 3.0 and 4.0 for test runs

--
[...truncated 442 lines...]
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.483 sec - in 
org.apache.phoenix.end2end.StatementHintsIT
Running org.apache.phoenix.end2end.FirstValueFunctionIT
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.302 sec - in 
org.apache.phoenix.end2end.FirstValueFunctionIT
Running org.apache.phoenix.end2end.RegexpSplitFunctionIT
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.234 sec - in 
org.apache.phoenix.end2end.LpadFunctionIT
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.867 sec - in 
org.apache.phoenix.end2end.RegexpSplitFunctionIT
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.994 sec - 
in org.apache.phoenix.end2end.DeleteIT
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.166 sec - 
in org.apache.phoenix.end2end.ArithmeticQueryIT

Results :

Tests run: 412, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-failsafe-plugin:2.17:integration-test (ClientManagedTimeTests) 
@ phoenix-core ---
[INFO] Failsafe report directory: 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/target/failsafe-reports
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, 
useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, 
threadCountMethods=0, parallelOptimized=true

---
 T E S T S
---

---
 T E S T S
---
Running org.apache.phoenix.end2end.ToNumberFunctionIT
Running org.apache.phoenix.end2end.SequenceIT
Running org.apache.phoenix.end2end.UpsertValuesIT
Running org.apache.phoenix.end2end.IsNullIT
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.94 sec - in 
org.apache.phoenix.end2end.ToNumberFunctionIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.047 sec - in 
org.apache.phoenix.end2end.IsNullIT
Running org.apache.phoenix.end2end.InMemoryOrderByIT
Running org.apache.phoenix.end2end.NativeHBaseTypesIT
Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 5.168 sec - in 
org.apache.phoenix.end2end.InMemoryOrderByIT
Running org.apache.phoenix.end2end.TenantSpecificTablesDDLIT
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.933 sec - in 
org.apache.phoenix.end2end.NativeHBaseTypesIT
Running org.apache.phoenix.end2end.ClientTimeArithmeticQueryIT
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.783 sec - 
in org.apache.phoenix.end2end.UpsertValuesIT
Running org.apache.phoenix.end2end.TruncateFunctionIT
Tests run: 49, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.178 sec - 
in org.apache.phoenix.end2end.SequenceIT
Running org.apache.phoenix.end2end.DerivedTableIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.463 sec - in 
org.apache.phoenix.end2end.TruncateFunctionIT
Running org.apache.phoenix.end2end.QueryIT
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.542 sec - 
in org.apache.phoenix.end2end.DerivedTableIT
Running org.apache.phoenix.end2end.GroupByIT
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 41.8 sec - in 
org.apache.phoenix.end2end.TenantSpecificTablesDDLIT
Running org.apache.phoenix.end2end.SpooledOrderByIT
Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 4.863 sec - in 
org.apache.phoenix.end2end.SpooledOrderByIT
Running org.apache.phoenix.end2end.VariableLengthPKIT
Tests run: 116, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 57.231 sec - 
in org.apache.phoenix.end2end.ClientTimeArithmeticQueryIT
Running org.apache.phoenix.end2end.ScanQueryIT
Tests run: 52, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 33.247 sec - 
in org.apache.phoenix.end2end.GroupByIT
Running org.apache.phoenix.end2end.DynamicColumnIT
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.376 sec - in 
org.apache.phoenix.end2end.DynamicColumnIT
Running org.apache.phoenix.end2end.TenantSpecificTablesDMLIT
Tests run: 50, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.699 sec - 
in org.apache.phoenix.end2end.VariableLengthPKIT
Running org.apache.phoenix.end2end.DynamicUpsertIT
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.61 sec - in 
org.apache.phoenix.end2end.DynamicUpsertIT
Running org.apache.phoenix.end2end.ExtendedQueryExecIT
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.388 sec - in 
org.apache.phoenix.end2end.ExtendedQueryExecIT
Running org.apache.phoenix.end2end.DefaultParallelIteratorsRegionSplitterIT
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.802 sec - 
in 

Build failed in Jenkins: Phoenix | Master | Hadoop1 #388

2014-09-26 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-master-hadoop1/388/changes

Changes:

[jtaylor] PHOENIX-1298 Queries on fixed width type columns that have an index 
declared on them don't use that index (Samarth Jain)

[jtaylor] Increasing memory a little bit

--
[...truncated 576 lines...]
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at 
org.apache.phoenix.query.BaseTest.assertValuesEqualsResultSet(BaseTest.java:1328)
at 
org.apache.phoenix.end2end.BaseQueryIT.assertValueEqualsResultSet(BaseQueryIT.java:126)
at 
org.apache.phoenix.end2end.QueryIT.testFullyQualifiedRVCInList(QueryIT.java:492)

testFullyQualifiedRVCInList[CREATE LOCAL INDEX ATABLE_IDX ON aTable (a_integer) 
INCLUDE (A_STRING, B_STRING, 
A_DATE)](org.apache.phoenix.end2end.QueryIT)  Time elapsed: 1.353 sec   
FAILURE!
java.lang.AssertionError: expected:0 but was:2
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at 
org.apache.phoenix.query.BaseTest.assertValuesEqualsResultSet(BaseTest.java:1328)
at 
org.apache.phoenix.end2end.BaseQueryIT.assertValueEqualsResultSet(BaseQueryIT.java:126)
at 
org.apache.phoenix.end2end.QueryIT.testFullyQualifiedRVCInList(QueryIT.java:492)

testFullyQualifiedRVCInList[](org.apache.phoenix.end2end.QueryIT)  Time 
elapsed: 2.74 sec   FAILURE!
java.lang.AssertionError: expected:0 but was:2
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at 
org.apache.phoenix.query.BaseTest.assertValuesEqualsResultSet(BaseTest.java:1328)
at 
org.apache.phoenix.end2end.BaseQueryIT.assertValueEqualsResultSet(BaseQueryIT.java:126)
at 
org.apache.phoenix.end2end.QueryIT.testFullyQualifiedRVCInList(QueryIT.java:492)


Results :

Failed tests: 
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2

Tests run: 1270, Failures: 7, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-failsafe-plugin:2.17:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] Failsafe report directory: 
https://builds.apache.org/job/Phoenix-master-hadoop1/ws/phoenix-core/target/failsafe-reports
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, 
useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, 
threadCountMethods=0, parallelOptimized=true

---
 T E S T S
---

---
 T E S T S
---
Running org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
Running org.apache.phoenix.trace.PhoenixTraceReaderIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.249 sec - in 
org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
Running org.apache.phoenix.trace.PhoenixTracingEndToEndIT
Running org.apache.phoenix.end2end.EncodeFunctionIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.825 sec - in 
org.apache.phoenix.trace.PhoenixTraceReaderIT
Running org.apache.phoenix.end2end.AutoCommitIT
Running org.apache.phoenix.end2end.ModulusExpressionIT
Running org.apache.phoenix.end2end.DeleteIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.875 sec - in 
org.apache.phoenix.end2end.AutoCommitIT
Running org.apache.phoenix.end2end.QueryExecWithoutSCNIT
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.399 sec - in 

Build failed in Jenkins: Phoenix | 4.0 | Hadoop2 #173

2014-09-26 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-4.0-hadoop2/173/changes

Changes:

[jtaylor] Increasing memory a little bit

--
[...truncated 574 lines...]
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at 
org.apache.phoenix.query.BaseTest.assertValuesEqualsResultSet(BaseTest.java:1328)
at 
org.apache.phoenix.end2end.BaseQueryIT.assertValueEqualsResultSet(BaseQueryIT.java:126)
at 
org.apache.phoenix.end2end.QueryIT.testFullyQualifiedRVCInList(QueryIT.java:492)

testFullyQualifiedRVCInList[](org.apache.phoenix.end2end.QueryIT)  Time 
elapsed: 0.4 sec   FAILURE!
java.lang.AssertionError: expected:0 but was:2
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at 
org.apache.phoenix.query.BaseTest.assertValuesEqualsResultSet(BaseTest.java:1328)
at 
org.apache.phoenix.end2end.BaseQueryIT.assertValueEqualsResultSet(BaseQueryIT.java:126)
at 
org.apache.phoenix.end2end.QueryIT.testFullyQualifiedRVCInList(QueryIT.java:492)

Running org.apache.phoenix.end2end.ReadIsolationLevelIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.04 sec - in 
org.apache.phoenix.end2end.ReadIsolationLevelIT
Running org.apache.phoenix.end2end.CreateTableIT
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 23.586 sec - 
in org.apache.phoenix.end2end.UpsertSelectIT
Running org.apache.phoenix.end2end.CompareDecimalToLongIT
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.191 sec - in 
org.apache.phoenix.end2end.CompareDecimalToLongIT
Running org.apache.phoenix.end2end.OrderByIT
Tests run: 61, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.518 sec - 
in org.apache.phoenix.end2end.ProductMetricsIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.831 sec - in 
org.apache.phoenix.end2end.OrderByIT
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.013 sec - 
in org.apache.phoenix.end2end.CreateTableIT
Tests run: 63, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 47.084 sec - 
in org.apache.phoenix.end2end.CaseStatementIT
Tests run: 77, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.636 sec - 
in org.apache.phoenix.end2end.NotQueryIT

Results :

Failed tests: 
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2
  
QueryIT.testFullyQualifiedRVCInList:492-BaseQueryIT.assertValueEqualsResultSet:126-BaseTest.assertValuesEqualsResultSet:1328
 expected:0 but was:2

Tests run: 1270, Failures: 7, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-failsafe-plugin:2.17:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] Failsafe report directory: 
https://builds.apache.org/job/Phoenix-4.0-hadoop2/ws/phoenix-core/target/failsafe-reports
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, 
useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, 
threadCountMethods=0, parallelOptimized=true

---
 T E S T S
---

---
 T E S T S
---
Running org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
Running org.apache.phoenix.end2end.BinaryRowKeyIT
Running org.apache.phoenix.trace.PhoenixTraceReaderIT
Running org.apache.phoenix.trace.PhoenixTracingEndToEndIT
Running org.apache.phoenix.end2end.UpsertSelectAutoCommitIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.369 sec - in 
org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
Running org.apache.phoenix.end2end.DynamicFamilyIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.179 sec - in 
org.apache.phoenix.trace.PhoenixTraceReaderIT
Running org.apache.phoenix.end2end.SortOrderFIT
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0,