提交 12991a95 编写于 作者: N nishantmonu51

actually fix it

上级 c6f53116
......@@ -52,9 +52,9 @@ public class HashBasedNumberedShardSpec extends NumberedShardSpec
public boolean isInChunk(InputRow inputRow)
{
int hash = Math.abs(hash(inputRow));
// if (hash == Integer.MIN_VALUE) {
// hash = 0;
// }
if (hash == Integer.MIN_VALUE) {
hash = 0;
}
return hash % getPartitions() == getPartitionNum();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册