kadirozde commented on a change in pull request #672: PHOENIX-5658 IndexTool to 
verify index rows inline
URL: https://github.com/apache/phoenix/pull/672#discussion_r364163795
 
 

 ##########
 File path: 
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/UngroupedAggregateRegionObserver.java
 ##########
 @@ -1291,6 +1470,38 @@ public boolean next(List<Cell> results) throws 
IOException {
             } finally {
                 region.closeRegionOperation();
             }
+            if (verify) {
+                ArrayList<KeyRange> keys = new ArrayList<>(rowCountPerTask);
+                for (byte[] key : dataPutMap.keySet()) {
+                    keys.add(PVarbinary.INSTANCE.getKeyRange(key));
 
 Review comment:
   They are the same thing except that PDataType.getKeyRange() is a wrapper 
method of KeyRange.getKeyRange() and adjusts the key range to "
   * Force lower bound to be inclusive for fixed width keys because it makes 
comparisons less expensive when you
   * can count on one bound or the other being inclusive."

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to