You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2023/12/01 17:22:37 UTC
(phoenix) branch 5.1 updated: PHOENIX-7109 Incorrect query results when using OFFSET
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 <me...@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;
}