RockteMQ-AI commented on issue #10862:
URL: https://github.com/apache/rocketmq/issues/10862#issuecomment-5225832367
**Issue Evaluation**
Category: `bug` | Status: **Confirmed**
The reported issue has been verified against the current codebase (commit
`fd0c959`).
**Root Cause:** `ConstantExpression.createFloat()` (line 61) uses
`Double.MIN_VALUE` as the lower bound. In Java, `Double.MIN_VALUE` is
`4.9E-324` — the smallest positive non-zero value — not the most negative
finite value. Therefore `0.0` fails the check `value < Double.MIN_VALUE` and is
rejected.
**Impact:** SQL selector expressions like `a = 0.0` fail at runtime,
preventing legitimate zero-value filtering.
**Severity:** high — breaks a fundamental use case (zero-value comparison in
message selectors)
**Suggested Fix:** Change the lower bound to `-Double.MAX_VALUE`:
```java
if (value < -Double.MAX_VALUE) {
throw new RuntimeException(text + " is less than " +
(-Double.MAX_VALUE));
}
```
An automated fix proposal will be generated. Reply `/approve` to proceed
with PR generation.
---
*Automated evaluation by RockteMQ-AI*
--
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]