virajjasani commented on code in PR #2176:
URL: https://github.com/apache/phoenix/pull/2176#discussion_r2128038890
##########
phoenix-core-client/src/main/java/org/apache/phoenix/jdbc/PhoenixPrefetchedResultSet.java:
##########
@@ -42,7 +42,8 @@ public PhoenixPrefetchedResultSet(RowProjector rowProjector,
@Override
protected Tuple getCurrentRowImpl() {
- return prefetchedRows.get(prefetchedRowsIndex++);
+ return prefetchedRows.size() > prefetchedRowsIndex ?
prefetchedRows.get(prefetchedRowsIndex++)
+ : null;
Review Comment:
Nice! This was in my backlog, missed it for sometime.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]