Build failed in Jenkins: Phoenix-Calcite #66

2017-02-03 Thread Apache Jenkins Server
See 

Changes:

[maryannxue] PHOENIX-3309 Divide query planning into multiple stages

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on H14 (ubuntu) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/phoenix.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/calcite^{commit} # timeout=10
Checking out Revision 36a31bf904ea0f12dd6aa7e3ab5e89ef8af427c2 (origin/calcite)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 36a31bf904ea0f12dd6aa7e3ab5e89ef8af427c2
 > git rev-list 229f4c706d702bc48bc316290102cca12ca86f58 # timeout=10
No emails were triggered.
[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.
[EnvInject] - Injecting as environment variables the properties content 
MAVEN_OPTS=-Xmx3G

[EnvInject] - Variables injected successfully.
[Phoenix-calcite] $ /bin/bash -xe /tmp/hudson4900149518183828548.sh
+ echo 'DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802'
DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802
+ echo 'CURRENT CONTENT:'
CURRENT CONTENT:
+ ls /home/jenkins/.m2/repository/org/apache/htrace
htrace
htrace-core
[Phoenix-calcite] $ /home/jenkins/tools/maven/latest3/bin/mvn -U clean install 
-Dcheckstyle.skip=true
[INFO] Scanning for projects...
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache Phoenix
[INFO] Phoenix Core
[INFO] Phoenix - Flume
[INFO] Phoenix - Pig
[INFO] Phoenix Query Server Client
[INFO] Phoenix Query Server
[INFO] Phoenix - Pherf
[INFO] Phoenix - Spark
[INFO] Phoenix - Hive
[INFO] Phoenix Client
[INFO] Phoenix Server
[INFO] Phoenix Assembly
[INFO] Phoenix - Tracing Web Application
[INFO] 
[INFO] 
[INFO] Building Apache Phoenix 4.10.0-HBase-1.2-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoenix ---
[INFO] Deleting 
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.13:check (validate) @ phoenix ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ phoenix ---
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ phoenix ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ phoenix ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ 
phoenix ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ phoenix ---
[INFO] Installing  to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.10.0-HBase-1.2-SNAPSHOT/phoenix-4.10.0-HBase-1.2-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.10.0-HBase-1.2-SNAPSHOT/phoenix-4.10.0-HBase-1.2-SNAPSHOT-tests.jar
[INFO] 
[INFO] 
[INFO] Building Phoenix Core 4.10.0-HBase-1.2-SNAPSHOT
[INFO] 
Downloading: 
http://repository.apache.org/snapshots/org/apache/calcite/calcite-core/1.12.0-SNAPSHOT/maven-metadata.xml
Downloading: 
https://repository.apache.org/content/repositories/releases/org/apache/calcite/calcite-core/1.12.0-SNAPSHOT/maven-metadata.xml
2/2 KB   
 
Downloaded: 
http://repository.apache.org/snapshots/org/apache/calcite/calcite-core/1.12.0-SNAPSHOT/maven-metadata.xml
 (2 KB at 2.9 KB/sec)
 
Downloading: 
https://repository.apache.org/content/repositories/releases/org/apache/calcite/calcite/1.12.0-SNAPSHOT/maven-metadata.xml
Downloading: 
http://repository.apache.org/snapshots/org/apache/calcite/calcite/1.12.0-SNAPSHOT/maven-metadata.xml
606/606 B   


Downlo

[1/2] phoenix git commit: PHOENIX-3309 Divide query planning into multiple stages

2017-02-03 Thread maryannxue
Repository: phoenix
Updated Branches:
  refs/heads/calcite 229f4c706 -> 36a31bf90


http://git-wip-us.apache.org/repos/asf/phoenix/blob/36a31bf9/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixForwardTableScanRule.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixForwardTableScanRule.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixForwardTableScanRule.java
index b369e48..b2c991f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixForwardTableScanRule.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixForwardTableScanRule.java
@@ -3,7 +3,6 @@ package org.apache.phoenix.calcite.rules;
 import org.apache.calcite.plan.RelOptRule;
 import org.apache.calcite.plan.RelOptRuleCall;
 import org.apache.calcite.rel.RelCollation;
-import org.apache.calcite.rel.RelCollations;
 import org.apache.calcite.rel.RelNode;
 import org.apache.calcite.rel.core.Sort;
 import org.apache.phoenix.calcite.rel.PhoenixTableScan;
@@ -12,11 +11,12 @@ import 
org.apache.phoenix.calcite.rel.PhoenixTableScan.ScanOrder;
 import com.google.common.base.Predicate;
 
 public class PhoenixForwardTableScanRule extends RelOptRule {
-private static final Predicate NON_EMPTY_COLLATION =
+private static final Predicate APPLICABLE_SORT =
 new Predicate() {
 @Override
 public boolean apply(Sort input) {
-return !input.getCollation().getFieldCollations().isEmpty();
+return !input.getCollation().getFieldCollations().isEmpty()
+&& input.offset == null && input.fetch == null;
 }
 };
 
@@ -29,7 +29,7 @@ public class PhoenixForwardTableScanRule extends RelOptRule {
 };
 
 public PhoenixForwardTableScanRule(Class sortClass) {
-super(operand(sortClass, null, NON_EMPTY_COLLATION,
+super(operand(sortClass, null, APPLICABLE_SORT,
 operand(PhoenixTableScan.class, null, APPLICABLE_TABLE_SCAN, 
any())),
 PhoenixForwardTableScanRule.class.getName() + ":" + 
sortClass.getName());
 }
@@ -45,11 +45,6 @@ public class PhoenixForwardTableScanRule extends RelOptRule {
 RelNode newRel = PhoenixTableScan.create(
 scan.getCluster(), scan.getTable(), scan.filter,
 ScanOrder.FORWARD, scan.extendedColumnRef);
-if (sort.offset != null || sort.fetch != null) {
-newRel = sort.copy(
-sort.getTraitSet().replace(RelCollations.EMPTY),
-newRel, RelCollations.EMPTY, sort.offset, 
sort.fetch);
-}
 call.transformTo(newRel);
 break;
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/36a31bf9/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixJoinSingleValueAggregateMergeRule.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixJoinSingleValueAggregateMergeRule.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixJoinSingleValueAggregateMergeRule.java
index bf010ce..3c65a0c 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixJoinSingleValueAggregateMergeRule.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/PhoenixJoinSingleValueAggregateMergeRule.java
@@ -4,6 +4,7 @@ import java.util.List;
 
 import org.apache.calcite.plan.RelOptRule;
 import org.apache.calcite.plan.RelOptRuleCall;
+import org.apache.calcite.rel.logical.LogicalAggregate;
 import org.apache.phoenix.calcite.rel.PhoenixAbstractAggregate;
 import org.apache.phoenix.calcite.rel.PhoenixAbstractJoin;
 import org.apache.phoenix.calcite.rel.PhoenixConvention;
@@ -14,10 +15,10 @@ import com.google.common.base.Predicate;
 public class PhoenixJoinSingleValueAggregateMergeRule extends RelOptRule {
 
 /** Predicate that returns true if the Aggregate is solely SINGLE_VALUE 
check. */
-private static final Predicate 
IS_SINGLE_VALUE_CHECK_AGGREGATE =
-new Predicate() {
+private static final Predicate 
IS_SINGLE_VALUE_CHECK_AGGREGATE =
+new Predicate() {
 @Override
-public boolean apply(PhoenixAbstractAggregate phoenixAggregate) {
+public boolean apply(LogicalAggregate phoenixAggregate) {
 if 
(!PhoenixAbstractAggregate.isSingleValueCheckAggregate(phoenixAggregate))
 return false;
 
@@ -44,7 +45,7 @@ public class PhoenixJoinSingleValueAggregateMergeRule extends 
RelOptRule {
 operand(
 PhoenixRel.class, any()),
 operand(
-PhoenixAbstractAggregate.class, null, 
IS_SINGLE_VALUE_CHECK_AGGREG

[2/2] phoenix git commit: PHOENIX-3309 Divide query planning into multiple stages

2017-02-03 Thread maryannxue
PHOENIX-3309 Divide query planning into multiple stages


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

Branch: refs/heads/calcite
Commit: 36a31bf904ea0f12dd6aa7e3ab5e89ef8af427c2
Parents: 229f4c7
Author: maryannxue 
Authored: Thu Feb 2 23:36:08 2017 -0800
Committer: maryannxue 
Committed: Fri Feb 3 21:59:55 2017 -0800

--
 .../apache/phoenix/calcite/CalciteDMLIT.java|   6 +-
 .../phoenix/calcite/CalciteGlobalIndexIT.java   |  10 +-
 .../org/apache/phoenix/calcite/CalciteIT.java   |  78 ++--
 .../phoenix/calcite/CalciteLocalIndexIT.java|  14 +-
 .../phoenix/calcite/PhoenixPrepareImpl.java |  61 +--
 .../apache/phoenix/calcite/PhoenixPrograms.java | 370 +++
 .../apache/phoenix/calcite/PhoenixTable.java|  12 +-
 .../calcite/metadata/PhoenixRelMdCollation.java |  85 -
 .../metadata/PhoenixRelMdMaxRowCount.java   |  32 ++
 .../calcite/metadata/PhoenixRelMdRowCount.java  |   4 +-
 .../calcite/metadata/PhoenixRelMdSize.java  |  49 ++-
 .../metadata/PhoenixRelMetadataProvider.java|   3 +-
 .../org/apache/phoenix/calcite/rel/Limit.java   |  40 ++
 .../phoenix/calcite/rel/LogicalLimit.java   |  45 +++
 .../calcite/rel/PhoenixClientProject.java   |   4 +-
 .../phoenix/calcite/rel/PhoenixLimit.java   |  25 +-
 .../calcite/rel/PhoenixServerProject.java   |   4 +-
 .../phoenix/calcite/rel/PhoenixTableScan.java   |  21 ++
 .../calcite/rel/PhoenixTemporarySort.java   |   2 +-
 .../calcite/rules/PhoenixConverterRules.java|  26 +-
 .../rules/PhoenixForwardTableScanRule.java  |  13 +-
 ...hoenixJoinSingleValueAggregateMergeRule.java |  11 +-
 .../rules/PhoenixOrderedAggregateRule.java  |   9 +-
 .../rules/PhoenixReverseTableScanRule.java  |   9 +-
 .../PhoenixSortServerJoinTransposeRule.java |  18 +-
 .../rules/ProjectLimitTransposeRule.java|  37 ++
 .../calcite/rules/ProjectSortTransposeRule.java |  70 
 .../phoenix/calcite/rules/SortSplitRule.java|  40 ++
 28 files changed, 902 insertions(+), 196 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/36a31bf9/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java
index 6417ad2..116fa50 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java
@@ -36,7 +36,7 @@ public class CalciteDMLIT extends BaseCalciteIT {
 public void testUpsertValues() throws Exception {
 start(PROPS).sql("upsert into atable(organization_id, entity_id) 
values('1', '1')")
 .explainIs("PhoenixToEnumerableConverter\n" +
-   "  PhoenixTableModify(table=[[phoenix, ATABLE]], 
operation=[INSERT], updateColumnList=[[]], flattened=[false])\n" +
+   "  PhoenixTableModify(table=[[phoenix, ATABLE]], 
operation=[INSERT], flattened=[false])\n" +
"PhoenixClientProject(ORGANIZATION_ID=[$0], 
ENTITY_ID=[$1], A_STRING=[null], B_STRING=[null], A_INTEGER=[null], 
A_DATE=[null], A_TIME=[null], A_TIMESTAMP=[null], X_DECIMAL=[null], 
X_LONG=[null], X_INTEGER=[null], Y_INTEGER=[null], A_BYTE=[null], 
A_SHORT=[null], A_FLOAT=[null], A_DOUBLE=[null], A_UNSIGNED_FLOAT=[null], 
A_UNSIGNED_DOUBLE=[null])\n" +
"  PhoenixValues(tuples=[[{ '1  ', '1   
   ' }]])\n")
 .executeUpdate()
@@ -106,7 +106,7 @@ public class CalciteDMLIT extends BaseCalciteIT {
 @Test public void testDelete() throws Exception {
 start(PROPS).sql("upsert into atable(organization_id, entity_id) 
values('1', '1')")
 .explainIs("PhoenixToEnumerableConverter\n" +
-   "  PhoenixTableModify(table=[[phoenix, ATABLE]], 
operation=[INSERT], updateColumnList=[[]], flattened=[false])\n" +
+   "  PhoenixTableModify(table=[[phoenix, ATABLE]], 
operation=[INSERT], flattened=[false])\n" +
"PhoenixClientProject(ORGANIZATION_ID=[$0], 
ENTITY_ID=[$1], A_STRING=[null], B_STRING=[null], A_INTEGER=[null], 
A_DATE=[null], A_TIME=[null], A_TIMESTAMP=[null], X_DECIMAL=[null], 
X_LONG=[null], X_INTEGER=[null], Y_INTEGER=[null], A_BYTE=[null], 
A_SHORT=[null], A_FLOAT=[null], A_DOUBLE=[null], A_UNSIGNED_FLOAT=[null], 
A_UNSIGNED_DOUBLE=[null])\n" +
"  PhoenixValues(tuples=[[{ '1  ', '1   
   

Apache Phoenix - Timeout crawler - Build https://builds.apache.org/job/Phoenix-calcite/65/

2017-02-03 Thread Apache Jenkins Server
[...truncated 97 lines...]
Looking at the log, list of test(s) that timed-out:

Build:
https://builds.apache.org/job/Phoenix-calcite/65/


Affected test class(es):
Set(['org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT',
 'org.apache.phoenix.end2end.index.IndexIT'])


Build step 'Execute shell' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any


[2/3] phoenix git commit: PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)

2017-02-03 Thread maryannxue
PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual 
split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)


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

Branch: refs/heads/calcite
Commit: 58ae6668c6097e0237a0cbf2233d3cf6aca77410
Parents: 39460bc
Author: Rajeshbabu Chintaguntla 
Authored: Fri Feb 3 22:30:07 2017 +0530
Committer: Rajeshbabu Chintaguntla 
Committed: Fri Feb 3 22:30:07 2017 +0530

--
 .../phoenix/end2end/ExecuteStatementsIT.java|  4 +-
 .../phoenix/end2end/ParallelIteratorsIT.java| 15 +++---
 .../apache/phoenix/end2end/SkipScanQueryIT.java | 17 +++---
 .../end2end/index/IndexExpressionIT.java| 36 +
 .../apache/phoenix/end2end/index/IndexIT.java   |  9 ++--
 .../phoenix/end2end/index/IndexMetadataIT.java  | 57 +++-
 .../phoenix/end2end/index/MutableIndexIT.java   |  5 +-
 .../phoenix/compile/QueryCompilerTest.java  |  6 +--
 .../phoenix/compile/QueryMetaDataTest.java  | 11 
 .../jdbc/PhoenixPreparedStatementTest.java  | 24 -
 .../java/org/apache/phoenix/query/BaseTest.java | 10 +---
 11 files changed, 61 insertions(+), 133 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/58ae6668/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
index 78f46cc..c8c0d37 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
@@ -68,7 +68,7 @@ public class ExecuteStatementsIT extends 
ParallelStatsDisabledIT {
 "\"DATE\" date not null,\n" +
 "val decimal\n" +
 "CONSTRAINT pk PRIMARY KEY (inst,host,\"DATE\"))\n" +
-"split on (?,?,?);\n" +
+"split on ('a','j','s');\n" +
 "alter table " + ptsdbTableName + " add if not exists val 
decimal;\n" +  // Shouldn't error out b/c of if not exists clause
 "alter table " + ptsdbTableName + " drop column if exists blah;\n" 
+  // Shouldn't error out b/c of if exists clause
 "drop table if exists FOO.BAR;\n" + // Shouldn't error out b/c of 
if exists clause
@@ -80,7 +80,7 @@ public class ExecuteStatementsIT extends 
ParallelStatsDisabledIT {
 Date now = new Date(System.currentTimeMillis());
 Connection conn = DriverManager.getConnection(getUrl());
 conn.setAutoCommit(true);
-List binds = Arrays.asList("a","j","s", 6);
+List binds = Arrays.asList(6);
 int nStatements = PhoenixRuntime.executeStatements(conn, new 
StringReader(statements), binds);
 assertEquals(7, nStatements);
 

http://git-wip-us.apache.org/repos/asf/phoenix/blob/58ae6668/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
index 5fc7d9e..717e7ac 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
@@ -31,11 +31,12 @@ import java.sql.DriverManager;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
-import java.util.Collections;
+import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.hadoop.hbase.ServerName;
 import org.apache.hadoop.hbase.client.Scan;
+import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.coprocessor.BaseScannerRegionObserver;
 import org.apache.phoenix.jdbc.PhoenixStatement;
@@ -216,12 +217,12 @@ public class ParallelIteratorsIT extends 
ParallelStatsEnabledIT {
 }
 
 private void createTable (Connection conn, byte[][] splits) throws 
SQLException {
-PreparedStatement stmt = conn.prepareStatement("create table " + 
tableName +
-"   (id char(1) not null primary key,\n" +
-"\"value\" integer) SPLIT ON (" + 
Joiner.on(',').join(Collections.nCopies(splits.length, "?")) + ")");
-for (int i = 0; i < splits.length; i++) {
-stmt.setBytes(i+1, splits[i]);
+List splitsList = new ArrayList(splits.lengt

[3/3] phoenix git commit: Fix merge conflicts

2017-02-03 Thread maryannxue
Fix merge conflicts


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

Branch: refs/heads/calcite
Commit: 229f4c706d702bc48bc316290102cca12ca86f58
Parents: f6d836a 58ae666
Author: maryannxue 
Authored: Fri Feb 3 14:32:16 2017 -0800
Committer: maryannxue 
Committed: Fri Feb 3 14:32:16 2017 -0800

--
 .../phoenix/end2end/ExecuteStatementsIT.java|  4 +-
 .../phoenix/end2end/ParallelIteratorsIT.java| 15 +--
 .../apache/phoenix/end2end/SkipScanQueryIT.java | 17 ++--
 .../end2end/index/IndexExpressionIT.java| 36 +++-
 .../apache/phoenix/end2end/index/IndexIT.java   |  9 +-
 .../phoenix/end2end/index/IndexMetadataIT.java  | 57 
 .../phoenix/end2end/index/MutableIndexIT.java   |  5 +-
 .../phoenix/monitoring/PhoenixMetricsIT.java| 56 ---
 .../apache/phoenix/rpc/PhoenixServerRpcIT.java  |  6 ++
 .../apache/phoenix/compile/UpsertCompiler.java  | 38 
 .../UngroupedAggregateRegionObserver.java   | 97 ++--
 .../org/apache/phoenix/schema/PTableImpl.java   | 10 ++
 .../phoenix/compile/QueryCompilerTest.java  |  6 +-
 .../phoenix/compile/QueryMetaDataTest.java  | 11 ---
 .../jdbc/PhoenixPreparedStatementTest.java  | 24 -
 .../java/org/apache/phoenix/query/BaseTest.java |  8 +-
 16 files changed, 198 insertions(+), 201 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/229f4c70/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java
--



[1/3] phoenix git commit: PHOENIX-3271 Distribute UPSERT SELECT across cluster

2017-02-03 Thread maryannxue
Repository: phoenix
Updated Branches:
  refs/heads/calcite f6d836a85 -> 229f4c706


PHOENIX-3271 Distribute UPSERT SELECT across cluster


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

Branch: refs/heads/calcite
Commit: 39460bc470d77f173d40b17f87a82c259bff5027
Parents: 069c371
Author: Ankit Singhal 
Authored: Tue Jan 31 11:46:53 2017 +0530
Committer: Ankit Singhal 
Committed: Tue Jan 31 11:46:53 2017 +0530

--
 .../phoenix/monitoring/PhoenixMetricsIT.java| 56 ---
 .../apache/phoenix/rpc/PhoenixServerRpcIT.java  |  6 ++
 .../apache/phoenix/compile/UpsertCompiler.java  | 38 
 .../UngroupedAggregateRegionObserver.java   | 97 ++--
 .../org/apache/phoenix/schema/PTableImpl.java   | 10 ++
 5 files changed, 138 insertions(+), 69 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/39460bc4/phoenix-core/src/it/java/org/apache/phoenix/monitoring/PhoenixMetricsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/monitoring/PhoenixMetricsIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/monitoring/PhoenixMetricsIT.java
index 16a66df..4d075ab 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/monitoring/PhoenixMetricsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/monitoring/PhoenixMetricsIT.java
@@ -439,18 +439,31 @@ public class PhoenixMetricsIT extends 
BaseUniqueNamesOwnClusterIT {
 public void testMetricsForUpsertSelectWithAutoCommit() throws Exception {
 String tableName1 = generateUniqueName();
 long table1SaltBuckets = 6;
-String ddl = "CREATE TABLE " + tableName1 + " (K VARCHAR NOT NULL 
PRIMARY KEY, V VARCHAR)" + " SALT_BUCKETS = "
-+ table1SaltBuckets;
+String ddl = "CREATE TABLE " + tableName1 + " (K BIGINT NOT NULL 
PRIMARY KEY ROW_TIMESTAMP, V VARCHAR)"
++ " SALT_BUCKETS = " + table1SaltBuckets + ", IMMUTABLE_ROWS = 
true";
 Connection ddlConn = DriverManager.getConnection(getUrl());
 ddlConn.createStatement().execute(ddl);
 ddlConn.close();
 int numRows = 10;
-insertRowsInTable(tableName1, numRows);
+String dml = "UPSERT INTO " + tableName1 + " VALUES (?, ?)";
+try (Connection conn = DriverManager.getConnection(getUrl())) {
+PreparedStatement stmt = conn.prepareStatement(dml);
+for (int i = 1; i <= numRows; i++) {
+stmt.setLong(1, i);
+stmt.setString(2, "value" + i);
+stmt.executeUpdate();
+}
+conn.commit();
+}
 
 String tableName2 = generateUniqueName();
-ddl = "CREATE TABLE " + tableName2 + " (K VARCHAR NOT NULL PRIMARY 
KEY, V VARCHAR)" + " SALT_BUCKETS = 10";
+ddl = "CREATE TABLE " + tableName2 + " (K BIGINT NOT NULL PRIMARY KEY 
ROW_TIMESTAMP, V VARCHAR)"
++ " SALT_BUCKETS = 10" + ", IMMUTABLE_ROWS = true";
 ddlConn = DriverManager.getConnection(getUrl());
 ddlConn.createStatement().execute(ddl);
+String indexName = generateUniqueName();
+ddl = "CREATE INDEX " + indexName + " ON " + tableName2 + " (V)";
+ddlConn.createStatement().execute(ddl);
 ddlConn.close();
 
 String upsertSelect = "UPSERT INTO " + tableName2 + " SELECT * FROM " 
+ tableName1;
@@ -602,41 +615,6 @@ public class PhoenixMetricsIT extends 
BaseUniqueNamesOwnClusterIT {
 }
 
 @Test
-public void testMetricsForUpsertSelectSameTable() throws Exception {
-String tableName = generateUniqueName();
-long table1SaltBuckets = 6;
-String ddl = "CREATE TABLE " + tableName + " (K VARCHAR NOT NULL 
PRIMARY KEY, V VARCHAR)" + " SALT_BUCKETS = "
-+ table1SaltBuckets;
-Connection ddlConn = DriverManager.getConnection(getUrl());
-ddlConn.createStatement().execute(ddl);
-ddlConn.close();
-int numRows = 10;
-insertRowsInTable(tableName, numRows);
-
-Connection conn = DriverManager.getConnection(getUrl());
-conn.setAutoCommit(false);
-String upsertSelect = "UPSERT INTO " + tableName + " SELECT * FROM " + 
tableName;
-conn.createStatement().executeUpdate(upsertSelect);
-conn.commit();
-PhoenixConnection pConn = conn.unwrap(PhoenixConnection.class);
-
-Map> mutationMetrics = 
PhoenixRuntime.getWriteMetricsForMutationsSinceLastReset(pConn);
-// Because auto-commit is off, upsert select into the same table will 
run on the client.
-// So we should have cl

Apache-Phoenix | 4.x-HBase-0.98 | Build Successful

2017-02-03 Thread Apache Jenkins Server
4.x-HBase-0.98 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=shortlog;h=refs/heads/4.x-HBase-0.98

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.x-HBase-0.98/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.x-HBase-0.98/lastCompletedBuild/testReport/

Changes
[rajeshbabu] PHOENIX-3646 Fix issues with Split keys and Replace bind values with



Build times for last couple of runsLatest build time is the right most | Legend blue: normal, red: test failure, gray: timeout


Jenkins build is back to normal : Phoenix-4.x-HBase-1.1 #320

2017-02-03 Thread Apache Jenkins Server
See 



Build failed in Jenkins: Phoenix | Master #1544

2017-02-03 Thread Apache Jenkins Server
See 

Changes:

[rajeshbabu] PHOENIX-3646 Fix issues with Split keys and Replace bind values 
with

--
[...truncated 940 lines...]
Running org.apache.phoenix.execute.PartialCommitIT
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.729 sec - in 
org.apache.phoenix.execute.PartialCommitIT
Running org.apache.phoenix.hbase.index.covered.example.FailWithoutRetriesIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.777 sec - in 
org.apache.phoenix.hbase.index.covered.EndToEndCoveredColumnsIndexBuilderIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.942 sec - in 
org.apache.phoenix.hbase.index.covered.example.FailWithoutRetriesIT
Running org.apache.phoenix.hbase.index.covered.example.EndToEndCoveredIndexingIT
Running 
org.apache.phoenix.hbase.index.covered.example.EndtoEndIndexingWithCompressionIT
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 59.623 sec - in 
org.apache.phoenix.end2end.index.txn.TxWriteFailureIT
Running org.apache.phoenix.iterate.RoundRobinResultIteratorWithStatsIT
Running org.apache.phoenix.iterate.ScannerLeaseRenewalIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.135 sec - in 
org.apache.phoenix.iterate.RoundRobinResultIteratorWithStatsIT
Running org.apache.phoenix.monitoring.PhoenixMetricsIT
Running org.apache.phoenix.rpc.PhoenixClientRpcIT
Tests run: 26, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 206.245 sec - 
in org.apache.phoenix.end2end.index.LocalIndexIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.199 sec - in 
org.apache.phoenix.rpc.PhoenixClientRpcIT
Running org.apache.phoenix.rpc.PhoenixServerRpcIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.184 sec - in 
org.apache.phoenix.rpc.PhoenixServerRpcIT
Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 262.157 sec <<< 
FAILURE! - in org.apache.phoenix.end2end.index.MutableIndexFailureIT
testWriteFailureDisablesIndex[MutableIndexFailureIT_transactional=false,localIndex=true,isNamespaceMapped=true](org.apache.phoenix.end2end.index.MutableIndexFailureIT)
  Time elapsed: 16.503 sec  <<< ERROR!
org.apache.phoenix.execute.CommitException: 
org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException: Failed 1 
action: org.apache.hadoop.hbase.DoNotRetryIOException: Failed 2 actions: 
org.apache.hadoop.hbase.DoNotRetryIOException
at 
org.apache.phoenix.end2end.index.MutableIndexFailureIT$FailingRegionObserver.preBatchMutate(MutableIndexFailureIT.java:407)
at 
org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$35.call(RegionCoprocessorHost.java:1007)
at 
org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1673)
at 
org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1749)
at 
org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1705)
at 
org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.preBatchMutate(RegionCoprocessorHost.java:1003)
at 
org.apache.hadoop.hbase.regionserver.HRegion.doMiniBatchMutation(HRegion.java:3080)
at 
org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:2867)
at 
org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:2809)
at 
org.apache.hadoop.hbase.regionserver.RSRpcServices.doBatchOp(RSRpcServices.java:751)
at 
org.apache.hadoop.hbase.regionserver.RSRpcServices.doNonAtomicRegionMutation(RSRpcServices.java:713)
at 
org.apache.hadoop.hbase.regionserver.RSRpcServices.multi(RSRpcServices.java:2148)
at 
org.apache.hadoop.hbase.client.MultiServerCallable.call(MultiServerCallable.java:128)
at 
org.apache.hadoop.hbase.client.MultiServerCallable.call(MultiServerCallable.java:53)
at 
org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
at 
org.apache.hadoop.hbase.client.AsyncProcess$AsyncRequestFutureImpl$SingleServerRequestRunnable.run(AsyncProcess.java:733)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
: 2 times, 
at 
org.apache.phoenix.util.ServerUtil.createIOException(ServerUtil.java:73)
at 
org.apache.phoenix.index.PhoenixIndexFailurePolicy.handleFailure(PhoenixIndexFailurePolicy.java:105)
at 
org.apache.phoenix.hbase.index.write.IndexWriter.writeAndKillYourselfOnFailure(IndexWriter.java:151)
at 
org.apache.phoenix.hbase.index.write.IndexWr

Apache Phoenix - Timeout crawler - Build https://builds.apache.org/job/Phoenix-calcite/64/

2017-02-03 Thread Apache Jenkins Server
[...truncated 22 lines...]
Looking at the log, list of test(s) that timed-out:

Build:
https://builds.apache.org/job/Phoenix-calcite/64/


Affected test class(es):
Set(['org.apache.phoenix.jdbc.PhoenixDriverTest', 
'org.apache.phoenix.jdbc.SecureUserConnectionsTest', 
'org.apache.phoenix.jdbc.PhoenixResultSetMetadataTest', 
'org.apache.phoenix.compile.QueryCompilerTest', 
'org.apache.phoenix.iterate.RowKeyOrderedAggregateResultIteratorTest', 
'org.apache.phoenix.compile.CreateTableCompilerTest', 
'org.apache.phoenix.jdbc.PhoenixPreparedStatementTest', 
'org.apache.phoenix.iterate.AggregateResultScannerTest'])


Build step 'Execute shell' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any


Build failed in Jenkins: Phoenix-Calcite #64

2017-02-03 Thread Apache Jenkins Server
See 

Changes:

[rajeshbabu] PHOENIX-3646 Fix issues with Split keys and Replace bind values 
with

--
[...truncated 1638 lines...]
3790/4130 KB   1669/1669 KB   
3794/4130 KB   1669/1669 KB   
3798/4130 KB   1669/1669 KB   
3802/4130 KB   1669/1669 KB   
3806/4130 KB   1669/1669 KB   
3810/4130 KB   1669/1669 KB   
3814/4130 KB   1669/1669 KB   
3818/4130 KB   1669/1669 KB   
3822/4130 KB   1669/1669 KB   
3826/4130 KB   1669/1669 KB   
3830/4130 KB   1669/1669 KB   
3834/4130 KB   1669/1669 KB   
3838/4130 KB   1669/1669 KB   
3842/4130 KB   1669/1669 KB   
3846/4130 KB   1669/1669 KB   
3850/4130 KB   1669/1669 KB   
3854/4130 KB   1669/1669 KB   
3858/4130 KB   1669/1669 KB   
3862/4130 KB   1669/1669 KB   
3866/4130 KB   1669/1669 KB   
3870/4130 KB   1669/1669 KB   
3874/4130 KB   1669/1669 KB   
3878/4130 KB   1669/1669 KB   
3882/4130 KB   1669/1669 KB   
3886/4130 KB   1669/1669 KB   
3890/4130 KB   1669/1669 KB   
3894/4130 KB   1669/1669 KB   
3898/4130 KB   1669/1669 KB   
3902/4130 KB   1669/1669 KB   
3906/4130 KB   1669/1669 KB   
3910/4130 KB   1669/1669 KB   
3914/4130 KB   1669/1669 KB   
3918/4130 KB   1669/1669 KB   
3922/4130 KB   1669/1669 KB   
3926/4130 KB   1669/1669 KB   
3930/4130 KB   1669/1669 KB   
3934/4130 KB   1669/1669 KB   
3938/4130 KB   1669/1669 KB   
3942/4130 KB   1669/1669 KB   
3946/4130 KB   1669/1669 KB   
3950/4130 KB   1669/1669 KB   
3954/4130 KB   1669/1669 KB   
3958/4130 KB   1669/1669 KB   
3962/4130 KB   1669/1669 KB   
3966/4130 KB   1669/1669 KB   
3970/4130 KB   1669/1669 KB   
3974/4130 KB   1669/1669 KB   
3978/4130 KB   1669/1669 KB   
3982/4130 KB   1669/1669 KB   
3986/4130 KB   1669/1669 KB   
3990/4130 KB   1669/1669 KB   
3994/4130 KB   1669/1669 KB   
3998/4130 KB   1669/1669 KB   
4002/4130 KB   1669/1669 KB   
4006/4130 KB   1669/1669 KB   
4010/4130 KB   1669/1669 KB   
4014/4130 KB   1669/1669 KB   
4018/4130 KB   1669/1669 KB   
4022/4130 KB   1669/1669 KB   
4026/4130 KB   1669/1669 KB   
4030/4130 KB   1669/1669 KB   
4034/4130 KB   1669/1669 KB   
4038/4130 KB   1669/1669 KB   
4042/4130 KB   1669/1669 KB   
4046/4130 KB   1669/1669 KB   
4050/4130 KB   1669/1669 KB   
4054/4130 KB   1669/1669 KB   
4058/4130 KB   1669/1669 KB   
4062/4130 KB   1669/1669 KB   
4066/4130 KB   1669/1669 KB   
4070/4130 KB   1669/1669 KB   
4074/4130 KB   1669/1669 KB   
4078/4130 KB   1669/1669 KB   
4082/4130 KB   1669/1669 KB   
4086/4130 KB   1669/1669 KB   
4090/4130 KB   1669/1669 KB   
4094/4130 KB   1669/1669 KB   
4098/4130 KB   1669/1669 KB   
4102/4130 KB   1669/1669 KB   
4106/4130 KB   1669/1669 KB   
4110/4130 KB   1669/1669 KB   
4114/4130 KB   1669/1669 KB   
4118/4130 KB   1669/1669 KB   
4122/4130 KB   1669/1669 KB   
4126/4130 KB   1669/1669 KB   
4130/4130 KB   1669/1669 KB   
4130/4130 KB   1669/1669 KB   
  
Downloaded: 
http://repository.apache.org/snapshots/org/apache/calcite/calcite-core/1.12.0-SNAPSHOT/calcite-core-1.12.0-20170130.224842-16-tests.jar
 (1669 KB at 1470.3 KB/sec)
  
Downloaded: 
http://repository.apache.org/snapshots/org/apache/calcite/calcite-core/1.12.0-SNAPSHOT/calcite-core-1.12.0-20170130.224842-16.jar
 (4130 KB at 3393.2 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoenix-core ---
[INFO] Deleting 

[INFO] 
[INFO] --- maven-checkstyle-plugin:2.13:check (validate) @ phoenix-core ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9.1:add-test-source (add-test-source) @ 
phoenix-core ---
[INFO] Test Source directory: 
 
added.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9.1:add-test-resource 
(add-test-resource) @ phoenix-core ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-fmpp-resources) @ 
phoenix-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-dependency-plugin:2.1:unpack (unpack-parser-template) @ 
phoenix-core ---
[INFO] Configured Artifact: org.apache.calcite:calcite-core:?:jar
[INFO] Unpacking 
/home/jenkins/.m2/repository/org/apache/calcite/calcite-core/1.12.0-SNAPSHOT/calcite-core-1.12.0-SNAPSHOT.jar
 to
  
   with includes **/Parser.jj and excludes:null
[INFO] 
[INFO] --- fmpp-maven-plugin:1.0:generate (generate-fmpp-sources) @ 
phoenix-core ---
Downloading: 
https://oss.sonatype.org/content/repositories/snapshots/org/freemarker/freemarker/maven-metadata.xml
Downloading: 
https://repo.maven.apache.org/maven2/org/freemarker/freemarker/maven-metadata.xml
910/910 B 

Downloaded: 
https://repo.maven.apache.org/maven2/org/freemarker/freemarker/maven-metadata.xml
 (910 B at 17.1 KB/sec)

phoenix git commit: PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)

2017-02-03 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/calcite 2aab5bfa9 -> f6d836a85


PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual 
split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)


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

Branch: refs/heads/calcite
Commit: f6d836a852d9d3accc79351675055612880a0660
Parents: 2aab5bf
Author: Rajeshbabu Chintaguntla 
Authored: Fri Feb 3 23:30:33 2017 +0530
Committer: Rajeshbabu Chintaguntla 
Committed: Fri Feb 3 23:30:33 2017 +0530

--
 .../src/main/codegen/includes/parserImpls.ftl   | 21 ++--
 .../phoenix/calcite/PhoenixPrepareImpl.java |  7 ++-
 .../java/org/apache/phoenix/query/BaseTest.java |  3 ++-
 3 files changed, 27 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f6d836a8/phoenix-core/src/main/codegen/includes/parserImpls.ftl
--
diff --git a/phoenix-core/src/main/codegen/includes/parserImpls.ftl 
b/phoenix-core/src/main/codegen/includes/parserImpls.ftl
index 2539032..0d6a7b7 100644
--- a/phoenix-core/src/main/codegen/includes/parserImpls.ftl
+++ b/phoenix-core/src/main/codegen/includes/parserImpls.ftl
@@ -820,15 +820,32 @@ SqlNodeList SplitKeyList() :
 }
 {
 { pos = getPos(); }
-e = StringLiteral() { splitKeyList = startList(e); }
+e = SplitKeyLiteral() { splitKeyList = startList(e); }
 (
- e = StringLiteral() { splitKeyList.add(e); }
+ e = SplitKeyLiteral() { splitKeyList.add(e); }
 ) *
 {
 return new SqlNodeList(splitKeyList, pos.plus(getPos()));
 }
 }
 
+SqlNode SplitKeyLiteral():
+{
+SqlParserPos pos=null;
+SqlNode e;
+}
+{
+{ pos = getPos(); }
+(
+e = StringLiteral() 
+|
+e = NumericLiteral()
+)
+{
+return e.clone(pos);
+}
+}
+
 SqlColumnDefNode ColumnDef() :
 {
 SqlIdentifier columnName;

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f6d836a8/phoenix-core/src/main/java/org/apache/phoenix/calcite/PhoenixPrepareImpl.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/calcite/PhoenixPrepareImpl.java 
b/phoenix-core/src/main/java/org/apache/phoenix/calcite/PhoenixPrepareImpl.java
index 7311e58..9edc4de 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/calcite/PhoenixPrepareImpl.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/calcite/PhoenixPrepareImpl.java
@@ -679,7 +679,12 @@ public class PhoenixPrepareImpl extends CalcitePrepareImpl 
{
 splits = Lists.newArrayList();
 for (SqlNode splitKey : splitKeyList) {
 final SqlLiteral key = (SqlLiteral) splitKey;
-splits.add(nodeFactory.literal(((NlsString) 
key.getValue()).toString()));
+Object value = key.getValue();
+if(key.getValue() instanceof NlsString) {
+String quotedValue = ((NlsString) 
key.getValue()).toString();
+value = quotedValue.substring(1, quotedValue.length() - 1);
+}
+splits.add(nodeFactory.literal(value));
 }
 }
 

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f6d836a8/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java
--
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java 
b/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java
index 6631546..4ea40de 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java
@@ -123,6 +123,7 @@ import 
org.apache.hadoop.hbase.ipc.PhoenixRpcSchedulerFactory;
 import org.apache.hadoop.hbase.ipc.RpcControllerFactory;
 import org.apache.hadoop.hbase.ipc.controller.ServerRpcControllerFactory;
 import org.apache.hadoop.hbase.regionserver.RSRpcServices;
+import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.end2end.BaseClientManagedTimeIT;
 import org.apache.phoenix.end2end.BaseHBaseManagedTimeIT;
 import org.apache.phoenix.exception.SQLExceptionCode;
@@ -791,7 +792,7 @@ public abstract class BaseTest {
 if (splits != null) {
 buf.append(" SPLIT ON (");
 for (int i = 0; i < splits.length; i++) {
-buf.append("?,");
+
buf.append("'").append(Bytes.toString(splits[i])).append("'").append(",");
 }
 buf.setCharAt(buf.length()-1, ')');
 }



phoenix git commit: PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)

2017-02-03 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 accd4a276 -> 99f20979c


PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual 
split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 99f20979cf163bfe45650948be79474f4e866138
Parents: accd4a2
Author: Rajeshbabu Chintaguntla 
Authored: Fri Feb 3 22:41:28 2017 +0530
Committer: Rajeshbabu Chintaguntla 
Committed: Fri Feb 3 22:41:28 2017 +0530

--
 .../phoenix/end2end/ExecuteStatementsIT.java|  4 +-
 .../phoenix/end2end/ParallelIteratorsIT.java| 15 +++---
 .../apache/phoenix/end2end/SkipScanQueryIT.java | 17 +++---
 .../end2end/index/IndexExpressionIT.java| 36 +
 .../apache/phoenix/end2end/index/IndexIT.java   |  9 ++--
 .../phoenix/end2end/index/IndexMetadataIT.java  | 57 +++-
 .../phoenix/end2end/index/MutableIndexIT.java   |  5 +-
 .../phoenix/compile/QueryCompilerTest.java  |  6 +--
 .../phoenix/compile/QueryMetaDataTest.java  | 11 
 .../jdbc/PhoenixPreparedStatementTest.java  | 24 -
 .../java/org/apache/phoenix/query/BaseTest.java | 10 +---
 11 files changed, 61 insertions(+), 133 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/99f20979/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
index 78f46cc..c8c0d37 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
@@ -68,7 +68,7 @@ public class ExecuteStatementsIT extends 
ParallelStatsDisabledIT {
 "\"DATE\" date not null,\n" +
 "val decimal\n" +
 "CONSTRAINT pk PRIMARY KEY (inst,host,\"DATE\"))\n" +
-"split on (?,?,?);\n" +
+"split on ('a','j','s');\n" +
 "alter table " + ptsdbTableName + " add if not exists val 
decimal;\n" +  // Shouldn't error out b/c of if not exists clause
 "alter table " + ptsdbTableName + " drop column if exists blah;\n" 
+  // Shouldn't error out b/c of if exists clause
 "drop table if exists FOO.BAR;\n" + // Shouldn't error out b/c of 
if exists clause
@@ -80,7 +80,7 @@ public class ExecuteStatementsIT extends 
ParallelStatsDisabledIT {
 Date now = new Date(System.currentTimeMillis());
 Connection conn = DriverManager.getConnection(getUrl());
 conn.setAutoCommit(true);
-List binds = Arrays.asList("a","j","s", 6);
+List binds = Arrays.asList(6);
 int nStatements = PhoenixRuntime.executeStatements(conn, new 
StringReader(statements), binds);
 assertEquals(7, nStatements);
 

http://git-wip-us.apache.org/repos/asf/phoenix/blob/99f20979/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
index 5fc7d9e..717e7ac 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
@@ -31,11 +31,12 @@ import java.sql.DriverManager;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
-import java.util.Collections;
+import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.hadoop.hbase.ServerName;
 import org.apache.hadoop.hbase.client.Scan;
+import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.coprocessor.BaseScannerRegionObserver;
 import org.apache.phoenix.jdbc.PhoenixStatement;
@@ -216,12 +217,12 @@ public class ParallelIteratorsIT extends 
ParallelStatsEnabledIT {
 }
 
 private void createTable (Connection conn, byte[][] splits) throws 
SQLException {
-PreparedStatement stmt = conn.prepareStatement("create table " + 
tableName +
-"   (id char(1) not null primary key,\n" +
-"\"value\" integer) SPLIT ON (" + 
Joiner.on(',').join(Collections.nCopies(splits.length, "?")) + ")");
-for (int i = 0; i < splits.length; i++) {

phoenix git commit: PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)

2017-02-03 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 496f376d2 -> d77bad2b3


PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual 
split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)


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

Branch: refs/heads/4.x-HBase-1.1
Commit: d77bad2b37201f2859a8275da2b88f1fe5c238ea
Parents: 496f376
Author: Rajeshbabu Chintaguntla 
Authored: Fri Feb 3 22:35:32 2017 +0530
Committer: Rajeshbabu Chintaguntla 
Committed: Fri Feb 3 22:35:32 2017 +0530

--
 .../phoenix/end2end/ExecuteStatementsIT.java|  4 +-
 .../phoenix/end2end/ParallelIteratorsIT.java| 15 +++---
 .../apache/phoenix/end2end/SkipScanQueryIT.java | 17 +++---
 .../end2end/index/IndexExpressionIT.java| 36 +
 .../apache/phoenix/end2end/index/IndexIT.java   |  9 ++--
 .../phoenix/end2end/index/IndexMetadataIT.java  | 57 +++-
 .../phoenix/end2end/index/MutableIndexIT.java   |  5 +-
 .../phoenix/compile/QueryCompilerTest.java  |  6 +--
 .../phoenix/compile/QueryMetaDataTest.java  | 11 
 .../jdbc/PhoenixPreparedStatementTest.java  | 24 -
 .../java/org/apache/phoenix/query/BaseTest.java | 10 +---
 11 files changed, 61 insertions(+), 133 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/d77bad2b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
index 78f46cc..c8c0d37 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
@@ -68,7 +68,7 @@ public class ExecuteStatementsIT extends 
ParallelStatsDisabledIT {
 "\"DATE\" date not null,\n" +
 "val decimal\n" +
 "CONSTRAINT pk PRIMARY KEY (inst,host,\"DATE\"))\n" +
-"split on (?,?,?);\n" +
+"split on ('a','j','s');\n" +
 "alter table " + ptsdbTableName + " add if not exists val 
decimal;\n" +  // Shouldn't error out b/c of if not exists clause
 "alter table " + ptsdbTableName + " drop column if exists blah;\n" 
+  // Shouldn't error out b/c of if exists clause
 "drop table if exists FOO.BAR;\n" + // Shouldn't error out b/c of 
if exists clause
@@ -80,7 +80,7 @@ public class ExecuteStatementsIT extends 
ParallelStatsDisabledIT {
 Date now = new Date(System.currentTimeMillis());
 Connection conn = DriverManager.getConnection(getUrl());
 conn.setAutoCommit(true);
-List binds = Arrays.asList("a","j","s", 6);
+List binds = Arrays.asList(6);
 int nStatements = PhoenixRuntime.executeStatements(conn, new 
StringReader(statements), binds);
 assertEquals(7, nStatements);
 

http://git-wip-us.apache.org/repos/asf/phoenix/blob/d77bad2b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
index 5fc7d9e..717e7ac 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
@@ -31,11 +31,12 @@ import java.sql.DriverManager;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
-import java.util.Collections;
+import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.hadoop.hbase.ServerName;
 import org.apache.hadoop.hbase.client.Scan;
+import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.coprocessor.BaseScannerRegionObserver;
 import org.apache.phoenix.jdbc.PhoenixStatement;
@@ -216,12 +217,12 @@ public class ParallelIteratorsIT extends 
ParallelStatsEnabledIT {
 }
 
 private void createTable (Connection conn, byte[][] splits) throws 
SQLException {
-PreparedStatement stmt = conn.prepareStatement("create table " + 
tableName +
-"   (id char(1) not null primary key,\n" +
-"\"value\" integer) SPLIT ON (" + 
Joiner.on(',').join(Collections.nCopies(splits.length, "?")) + ")");
-for (int i = 0; i < splits.length; i++) {
-

phoenix git commit: PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)

2017-02-03 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/master 39460bc47 -> 58ae6668c


PHOENIX-3646 Fix issues with Split keys and Replace bind values with actual 
split keys in CREATE TABLE DDL in Phoenix-Calcite(Rajeshbabu)


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

Branch: refs/heads/master
Commit: 58ae6668c6097e0237a0cbf2233d3cf6aca77410
Parents: 39460bc
Author: Rajeshbabu Chintaguntla 
Authored: Fri Feb 3 22:30:07 2017 +0530
Committer: Rajeshbabu Chintaguntla 
Committed: Fri Feb 3 22:30:07 2017 +0530

--
 .../phoenix/end2end/ExecuteStatementsIT.java|  4 +-
 .../phoenix/end2end/ParallelIteratorsIT.java| 15 +++---
 .../apache/phoenix/end2end/SkipScanQueryIT.java | 17 +++---
 .../end2end/index/IndexExpressionIT.java| 36 +
 .../apache/phoenix/end2end/index/IndexIT.java   |  9 ++--
 .../phoenix/end2end/index/IndexMetadataIT.java  | 57 +++-
 .../phoenix/end2end/index/MutableIndexIT.java   |  5 +-
 .../phoenix/compile/QueryCompilerTest.java  |  6 +--
 .../phoenix/compile/QueryMetaDataTest.java  | 11 
 .../jdbc/PhoenixPreparedStatementTest.java  | 24 -
 .../java/org/apache/phoenix/query/BaseTest.java | 10 +---
 11 files changed, 61 insertions(+), 133 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/58ae6668/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
index 78f46cc..c8c0d37 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ExecuteStatementsIT.java
@@ -68,7 +68,7 @@ public class ExecuteStatementsIT extends 
ParallelStatsDisabledIT {
 "\"DATE\" date not null,\n" +
 "val decimal\n" +
 "CONSTRAINT pk PRIMARY KEY (inst,host,\"DATE\"))\n" +
-"split on (?,?,?);\n" +
+"split on ('a','j','s');\n" +
 "alter table " + ptsdbTableName + " add if not exists val 
decimal;\n" +  // Shouldn't error out b/c of if not exists clause
 "alter table " + ptsdbTableName + " drop column if exists blah;\n" 
+  // Shouldn't error out b/c of if exists clause
 "drop table if exists FOO.BAR;\n" + // Shouldn't error out b/c of 
if exists clause
@@ -80,7 +80,7 @@ public class ExecuteStatementsIT extends 
ParallelStatsDisabledIT {
 Date now = new Date(System.currentTimeMillis());
 Connection conn = DriverManager.getConnection(getUrl());
 conn.setAutoCommit(true);
-List binds = Arrays.asList("a","j","s", 6);
+List binds = Arrays.asList(6);
 int nStatements = PhoenixRuntime.executeStatements(conn, new 
StringReader(statements), binds);
 assertEquals(7, nStatements);
 

http://git-wip-us.apache.org/repos/asf/phoenix/blob/58ae6668/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
index 5fc7d9e..717e7ac 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelIteratorsIT.java
@@ -31,11 +31,12 @@ import java.sql.DriverManager;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
-import java.util.Collections;
+import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.hadoop.hbase.ServerName;
 import org.apache.hadoop.hbase.client.Scan;
+import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.coprocessor.BaseScannerRegionObserver;
 import org.apache.phoenix.jdbc.PhoenixStatement;
@@ -216,12 +217,12 @@ public class ParallelIteratorsIT extends 
ParallelStatsEnabledIT {
 }
 
 private void createTable (Connection conn, byte[][] splits) throws 
SQLException {
-PreparedStatement stmt = conn.prepareStatement("create table " + 
tableName +
-"   (id char(1) not null primary key,\n" +
-"\"value\" integer) SPLIT ON (" + 
Joiner.on(',').join(Collections.nCopies(splits.length, "?")) + ")");
-for (int i = 0; i < splits.length; i++) {
-st

Apache Phoenix - Timeout crawler - Build https://builds.apache.org/job/Phoenix-calcite/63/

2017-02-03 Thread Apache Jenkins Server
[...truncated 86 lines...]
Looking at the log, list of test(s) that timed-out:

Build:
https://builds.apache.org/job/Phoenix-calcite/63/


Affected test class(es):
Set(['org.apache.phoenix.end2end.SortMergeJoinIT', 
'org.apache.phoenix.end2end.index.IndexIT'])


Build step 'Execute shell' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any


Build failed in Jenkins: Phoenix-Calcite #63

2017-02-03 Thread Apache Jenkins Server
See 

Changes:

[rajeshbabu] PHOENIX-3647 Fix parsing issues in CREATE VIEW DDL in

--
[...truncated 74422 lines...]
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testReadMetricsForSelect(PhoenixMetricsIT.java:218)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testReadMetricsForSelect(PhoenixMetricsIT.java:218)

testMetricsForUpsert(org.apache.phoenix.monitoring.PhoenixMetricsIT)  Time 
elapsed: 2.404 sec  <<< ERROR!
java.sql.SQLException: 2
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsert(PhoenixMetricsIT.java:241)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsert(PhoenixMetricsIT.java:241)

testGlobalPhoenixMetricsForUpsertSelect(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 3.829 sec  <<< FAILURE!
java.lang.AssertionError: expected:<1> but was:<0>
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testGlobalPhoenixMetricsForUpsertSelect(PhoenixMetricsIT.java:161)

testGlobalPhoenixMetricsForMutations(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.384 sec  <<< FAILURE!
java.lang.AssertionError: expected:<10> but was:<0>
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testGlobalPhoenixMetricsForMutations(PhoenixMetricsIT.java:136)

testMetricsForDeleteWithAutoCommit(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.385 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.upsertRows(PhoenixMetricsIT.java:388)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForDeleteWithAutoCommit(PhoenixMetricsIT.java:406)
Caused by: java.lang.ArrayIndexOutOfBoundsException

testMetricsForUpsertSelect(org.apache.phoenix.monitoring.PhoenixMetricsIT)  
Time elapsed: 2.376 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsertSelect(PhoenixMetricsIT.java:284)
Caused by: java.lang.ArrayIndexOutOfBoundsException

testMetricsForUpsertWithAutoCommit(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.362 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.upsertRows(PhoenixMetricsIT.java:388)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsertWithAutoCommit(PhoenixMetricsIT.java:367)
Caused by: java.lang.ArrayIndexOutOfBoundsException

testMetricsForUpsertSelectWithAutoCommit(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.376 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsertSelectWithAutoCommit(PhoenixMetricsIT.java:448)
Caused by: java.lang.ArrayIndexOutOfBoundsException

testMetricsForUpsertSelectSameTable(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.364 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsertSelectSameTable(PhoenixMetricsIT.java:614)
Caused by: java.lang.ArrayIndexOutOfBoundsException

Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 135.964 sec - 
in org.apache.phoenix.hbase.index.covered.example.EndToEndCoveredIndexingIT
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 137.229 sec - 
in 
org.apache.phoenix.hbase.index.covered.example.EndtoEndIndexingWithCompressionIT
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 302.948 sec - 
in org.apache.phoenix.end2end.index.MutableIndexFailureIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 168.007 sec - 
in org.apache.phoenix.iterate.ScannerLeaseRenewalIT

Results :

Failed tests: 
  
FlappingLocalIndexIT.testBuildIndexWhenUserTableAlreadyHasData:295->BaseTest.assertEquals:1828
 expected:<1> but was:<0>
  
FlappingLocalIndexIT.testBuildIndexWhenUserTableAlreadyHasData:295->BaseTest.assertEquals:1828
 expected:<1> but was:<0>
  
FlappingLocalIndexIT.testLocalIndexScanWithSmallChunks:104->BaseTest.assertEquals:1784
 expected:<[z]> but was:<[a]>
  
Flapp

phoenix git commit: PHOENIX-3647 Fix parsing issues in CREATE VIEW DDL in Phoenix-Calcite-addendum(Rajeshbabu)

2017-02-03 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/calcite 8728510fa -> 2aab5bfa9


PHOENIX-3647 Fix parsing issues in CREATE VIEW DDL in 
Phoenix-Calcite-addendum(Rajeshbabu)


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

Branch: refs/heads/calcite
Commit: 2aab5bfa95d667457e15c4dec15b23d99b99a232
Parents: 8728510
Author: Rajeshbabu Chintaguntla 
Authored: Fri Feb 3 20:48:51 2017 +0530
Committer: Rajeshbabu Chintaguntla 
Committed: Fri Feb 3 20:48:51 2017 +0530

--
 phoenix-core/src/main/codegen/includes/parserImpls.ftl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/2aab5bfa/phoenix-core/src/main/codegen/includes/parserImpls.ftl
--
diff --git a/phoenix-core/src/main/codegen/includes/parserImpls.ftl 
b/phoenix-core/src/main/codegen/includes/parserImpls.ftl
index aef9010..2539032 100644
--- a/phoenix-core/src/main/codegen/includes/parserImpls.ftl
+++ b/phoenix-core/src/main/codegen/includes/parserImpls.ftl
@@ -100,11 +100,11 @@ SqlNode SqlCreateView() :
 pkConstraintColumnDefs = SqlNodeList.EMPTY;
 }
 )
+
 |
 {
 columnDefs = SqlNodeList.EMPTY;
 }
-   
 )
 (
 baseTableName = DualIdentifier()



Apache Phoenix - Timeout crawler - Build https://builds.apache.org/job/Phoenix-calcite/62/

2017-02-03 Thread Apache Jenkins Server
[...truncated 94 lines...]
Looking at the log, list of test(s) that timed-out:

Build:
https://builds.apache.org/job/Phoenix-calcite/62/


Affected test class(es):
Set(['org.apache.phoenix.end2end.index.IndexIT'])


Build step 'Execute shell' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any


Build failed in Jenkins: Phoenix-Calcite #62

2017-02-03 Thread Apache Jenkins Server
See 

Changes:

[rajeshbabu] PHOENIX-3647 Fix parsing issues in CREATE VIEW DDL in

--
[...truncated 85927 lines...]
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testReadMetricsForSelect(PhoenixMetricsIT.java:218)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testReadMetricsForSelect(PhoenixMetricsIT.java:218)

testMetricsForUpsert(org.apache.phoenix.monitoring.PhoenixMetricsIT)  Time 
elapsed: 2.348 sec  <<< ERROR!
java.sql.SQLException: 2
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsert(PhoenixMetricsIT.java:241)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsert(PhoenixMetricsIT.java:241)

testGlobalPhoenixMetricsForUpsertSelect(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 4.707 sec  <<< FAILURE!
java.lang.AssertionError: expected:<1> but was:<0>
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testGlobalPhoenixMetricsForUpsertSelect(PhoenixMetricsIT.java:161)

testGlobalPhoenixMetricsForMutations(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.347 sec  <<< FAILURE!
java.lang.AssertionError: expected:<10> but was:<0>
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testGlobalPhoenixMetricsForMutations(PhoenixMetricsIT.java:136)

testMetricsForDeleteWithAutoCommit(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.359 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.upsertRows(PhoenixMetricsIT.java:388)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForDeleteWithAutoCommit(PhoenixMetricsIT.java:406)
Caused by: java.lang.ArrayIndexOutOfBoundsException

testMetricsForUpsertSelect(org.apache.phoenix.monitoring.PhoenixMetricsIT)  
Time elapsed: 2.322 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsertSelect(PhoenixMetricsIT.java:284)
Caused by: java.lang.ArrayIndexOutOfBoundsException

testMetricsForUpsertWithAutoCommit(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.31 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.upsertRows(PhoenixMetricsIT.java:388)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsertWithAutoCommit(PhoenixMetricsIT.java:367)
Caused by: java.lang.ArrayIndexOutOfBoundsException

testMetricsForUpsertSelectWithAutoCommit(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.326 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsertSelectWithAutoCommit(PhoenixMetricsIT.java:448)
Caused by: java.lang.ArrayIndexOutOfBoundsException

testMetricsForUpsertSelectSameTable(org.apache.phoenix.monitoring.PhoenixMetricsIT)
  Time elapsed: 2.307 sec  <<< ERROR!
java.sql.SQLException
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.insertRowsInTable(PhoenixMetricsIT.java:747)
at 
org.apache.phoenix.monitoring.PhoenixMetricsIT.testMetricsForUpsertSelectSameTable(PhoenixMetricsIT.java:614)
Caused by: java.lang.ArrayIndexOutOfBoundsException

Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 137.312 sec - 
in org.apache.phoenix.hbase.index.covered.example.EndToEndCoveredIndexingIT
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 146.644 sec - 
in 
org.apache.phoenix.hbase.index.covered.example.EndtoEndIndexingWithCompressionIT
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 302.574 sec - 
in org.apache.phoenix.end2end.index.MutableIndexFailureIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 166.939 sec - 
in org.apache.phoenix.iterate.ScannerLeaseRenewalIT

Results :

Failed tests: 
  
FlappingLocalIndexIT.testBuildIndexWhenUserTableAlreadyHasData:295->BaseTest.assertEquals:1828
 expected:<1> but was:<0>
  
FlappingLocalIndexIT.testBuildIndexWhenUserTableAlreadyHasData:295->BaseTest.assertEquals:1828
 expected:<1> but was:<0>
  
FlappingLocalIndexIT.testLocalIndexScanWithSmallChunks:104->BaseTest.assertEquals:1784
 expected:<[z]> but was:<[a]>
  
Flappi