Skip to content

Commit 4a5332a

Browse files
committed
Fix Java test
1 parent c04b447 commit 4a5332a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/java/org/apache/spark/JavaAPISuite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public int numPartitions() {
206206
return 2;
207207
}
208208
public int getPartition(Object key) {
209-
return ((Integer)key).intValue();
209+
return ((Integer)key).intValue() % 2;
210210
}
211211
};
212212

0 commit comments

Comments
 (0)