Repository: phoenix Updated Branches: refs/heads/calcite 36a31bf90 -> 7a2e062c0
Fix JDK 1.7 compilation error Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/7a2e062c Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/7a2e062c Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/7a2e062c Branch: refs/heads/calcite Commit: 7a2e062c03f98d7cebbe9504693076abeb74b9b1 Parents: 36a31bf Author: maryannxue <maryann....@gmail.com> Authored: Sun Feb 5 22:53:24 2017 -0800 Committer: maryannxue <maryann....@gmail.com> Committed: Sun Feb 5 22:53:24 2017 -0800 ---------------------------------------------------------------------- .../org/apache/phoenix/calcite/rules/ProjectSortTransposeRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/7a2e062c/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/ProjectSortTransposeRule.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/ProjectSortTransposeRule.java b/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/ProjectSortTransposeRule.java index fa0abbe..47df94b 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/ProjectSortTransposeRule.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/calcite/rules/ProjectSortTransposeRule.java @@ -39,7 +39,7 @@ public class ProjectSortTransposeRule extends RelOptRule { Map<Integer, Integer> targets = Maps.newHashMap(); for (Ord<? extends RexNode> exp : Ord.zip(project.getProjects())) { if (exp.e instanceof RexInputRef) { - targets.putIfAbsent(((RexInputRef) exp.e).getIndex(), exp.i); + targets.put(((RexInputRef) exp.e).getIndex(), exp.i); } } ImmutableList.Builder<RelFieldCollation> builder = ImmutableList.builder();