AlbericByte commented on issue #15562:
URL: https://github.com/apache/druid/issues/15562#issuecomment-1867910413
hi @aleksi75 and @ochautard
I think it work as expected. if curr_size and max_size is not 0, we do not
have this exception.
The root cause is that divisor and dividend are both 0, the jdk will throw
this error from BigDecimal#divide function as following:
```
if (divisor.signum() == 0) { // x/0
if (dividend.signum() == 0) // 0/0
throw new ArithmeticException("Division undefined"); // NaN
throw new ArithmeticException("Division by zero");
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]