Skip to content

Commit e585755

Browse files
committed
[multistage] Handle Integer.MIN_VALUE in hashCode based FieldSelectionKeySelector
1 parent 7c1d10a commit e585755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pinot-query-planner/src/main/java/org/apache/pinot/query/planner/partitioning/FieldSelectionKeySelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public int computeHash(Object[] input) {
8989
}
9090

9191
// return a positive number because this is used directly to modulo-index
92-
return Math.abs(hashCode);
92+
return hashCode & Integer.MAX_VALUE;
9393
}
9494

9595
@Override

0 commit comments

Comments
 (0)