Skip to content

Commit 6ad2a90

Browse files
author
Davies Liu
committed
fix style
1 parent 5819d33 commit 6ad2a90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/InternalRow.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ abstract class InternalRow extends Row {
4343
val o1 = apply(i)
4444
val o2 = other.apply(i)
4545
if (o1.isInstanceOf[Array[Byte]]) {
46+
val b1 = o1.asInstanceOf[Array[Byte]]
4647
if (!o2.isInstanceOf[Array[Byte]] ||
47-
!java.util.Arrays.equals(o1.asInstanceOf[Array[Byte]], o2.asInstanceOf[Array[Byte]])) {
48+
!java.util.Arrays.equals(b1, o2.asInstanceOf[Array[Byte]])) {
4849
return false
4950
}
5051
} else if (o1 != o2) {

0 commit comments

Comments
 (0)