Skip to content

Commit 21bf8ae

Browse files
committed
Fix the comparator
1 parent d65b7b8 commit 21bf8ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parquet-column/src/main/java/org/apache/parquet/schema/PrimitiveComparator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int compareBinary(Binary b1, Binary b2) {
221221
if (jd1 != jd2) return Integer.compareUnsigned(jd1, jd2) < 0 ? -1 : 1;
222222
long s1 = bb1.getLong(0);
223223
long s2 = bb2.getLong(0);
224-
if (s1 != s2) return Long.compareUnsigned(s1, s2) < 0 ? 1 : 1;
224+
if (s1 != s2) return Long.compareUnsigned(s1, s2) < 0 ? -1 : 1;
225225
return 0;
226226
}
227227

0 commit comments

Comments
 (0)