This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch 5.1 in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/5.1 by this push: new a5fe9e1905 PHOENIX-7109 Incorrect query results when using OFFSET a5fe9e1905 is described below commit a5fe9e19057638dd3e90fb24cc4725ab22a9c29a Author: Aron Meszaros <meszaros.aron.att...@gmail.com> AuthorDate: Wed Nov 22 16:14:28 2023 +0100 PHOENIX-7109 Incorrect query results when using OFFSET --- .../src/main/java/org/apache/phoenix/iterate/OffsetResultIterator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phoenix-core/src/main/java/org/apache/phoenix/iterate/OffsetResultIterator.java b/phoenix-core/src/main/java/org/apache/phoenix/iterate/OffsetResultIterator.java index e00a9fbeb4..61de07500b 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/iterate/OffsetResultIterator.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/iterate/OffsetResultIterator.java @@ -49,7 +49,7 @@ public class OffsetResultIterator extends DelegateResultIterator { while (rowCount < offset) { Tuple tuple = super.next(); if (tuple == null) { return null; } - if (isDummy(tuple)) { + if (tuple.size() == 0 || isDummy(tuple)) { // while rowCount < offset absorb the dummy and call next on the underlying scanner continue; }