rymurr commented on a change in pull request #7275:
URL: https://github.com/apache/arrow/pull/7275#discussion_r440981167



##########
File path: 
java/vector/src/main/java/org/apache/arrow/vector/compare/RangeEqualsVisitor.java
##########
@@ -494,4 +505,46 @@ protected boolean compareFixedSizeListVectors(Range range) 
{
     }
     return true;
   }
+
+  protected boolean compareLargeListVectors(Range range) {
+    LargeListVector leftVector = (LargeListVector) left;
+    LargeListVector rightVector = (LargeListVector) right;
+
+    RangeEqualsVisitor innerVisitor =
+        createInnerVisitor(leftVector.getDataVector(), 
rightVector.getDataVector(), /*type comparator*/ null);
+    Range innerRange = new Range();
+
+    for (int i = 0; i < range.getLength(); i++) {
+      int leftIndex = range.getLeftStart() + i;
+      int rightIndex = range.getRightStart() + i;
+
+      boolean isNull = leftVector.isNull(leftIndex);
+      if (isNull != rightVector.isNull(rightIndex)) {
+        return false;
+      }
+
+      int offsetWidth = LargeListVector.OFFSET_WIDTH;
+
+      if (!isNull) {
+        final long startIndexLeft = 
leftVector.getOffsetBuffer().getLong(leftIndex * offsetWidth);

Review comment:
       done




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to