You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by an...@apache.org on 2017/08/16 10:06:51 UTC

phoenix git commit: PHOENIX-4083 Incorrect conditional when including OFFSET into explain plan (JC)

Repository: phoenix
Updated Branches:
  refs/heads/master b2c8e34f1 -> 5c7822df3


PHOENIX-4083 Incorrect conditional when including OFFSET into explain plan (JC)


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

Branch: refs/heads/master
Commit: 5c7822df3b5a2aaf7a6b3ab6059ad8bda2900139
Parents: b2c8e34
Author: Ankit Singhal <an...@gmail.com>
Authored: Wed Aug 16 15:36:40 2017 +0530
Committer: Ankit Singhal <an...@gmail.com>
Committed: Wed Aug 16 15:36:40 2017 +0530

----------------------------------------------------------------------
 .../java/org/apache/phoenix/iterate/OrderedResultIterator.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/5c7822df/phoenix-core/src/main/java/org/apache/phoenix/iterate/OrderedResultIterator.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/iterate/OrderedResultIterator.java b/phoenix-core/src/main/java/org/apache/phoenix/iterate/OrderedResultIterator.java
index 5afdfea..9dda7ea 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/iterate/OrderedResultIterator.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/iterate/OrderedResultIterator.java
@@ -291,7 +291,7 @@ public class OrderedResultIterator implements PeekingResultIterator {
     @Override
     public void explain(List<String> planSteps) {
         delegate.explain(planSteps);
-        planSteps.add("CLIENT" + (offset != null ? "" : " OFFSET " + offset)
+        planSteps.add("CLIENT" + (offset == null ? "" : " OFFSET " + offset)
                 + (limit == null ? "" : " TOP " + limit + " ROW" + (limit == 1 ? "" : "S")) + " SORTED BY "
                 + orderByExpressions.toString());
     }