Skip to content

Commit 3c9f066

Browse files
committed
fix
1 parent 0026882 commit 3c9f066

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/vector/src/main/java/org/apache/arrow/vector/BaseFixedWidthVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ public boolean equals(int index, ValueVector to, int toIndex) {
876876

877877
BaseFixedWidthVector that = (BaseFixedWidthVector) to;
878878

879-
if (this.isSet(index) != that.isSet(index)) {
879+
if (this.isSet(index) != that.isSet(toIndex)) {
880880
return false;
881881
}
882882

java/vector/src/main/java/org/apache/arrow/vector/BaseVariableWidthVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ public boolean equals(int index, ValueVector to, int toIndex) {
13751375

13761376
BaseVariableWidthVector that = (BaseVariableWidthVector) to;
13771377

1378-
if (this.isSet(index) != that.isSet(index)) {
1378+
if (this.isSet(index) != that.isSet(toIndex)) {
13791379
return false;
13801380
}
13811381

0 commit comments

Comments
 (0)