You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2022/03/02 07:08:07 UTC

[GitHub] [phoenix] stoty commented on a change in pull request #1398: PHOENIX-6658 Replace HRegion.get() calls

stoty commented on a change in pull request #1398:
URL: https://github.com/apache/phoenix/pull/1398#discussion_r817402432



##########
File path: phoenix-core/src/main/java/org/apache/phoenix/util/IndexUtil.java
##########
@@ -601,7 +602,12 @@ public static void wrapResultUsingOffset(final RegionCoprocessorEnvironment envi
             Result joinResult = null;
             if (ScanUtil.isLocalIndex(scan)) {
                 if (dataRegion != null) {
-                    joinResult = dataRegion.get(get);
+                    try (RegionScanner scanner = dataRegion.getScanner(new Scan(get))) {
+                        List<Cell> cells = new ArrayList<>();
+                        PhoenixKeyValueUtil.maybeCopyCellList(cells);
+                        scanner.next(cells);

Review comment:
       Thank you, fixed.




-- 
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: issues-unsubscribe@phoenix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org