mirror of https://github.com/apache/druid.git
actually fix it
This commit is contained in:
parent
c6f531168f
commit
12991a959a
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue