Query Information
PPL Command/Query:
source=bounty-types | where int_field = 2147483647 | eval overflow = int_field + 1 | fields int_field, overflow
source=bounty-types | where long_field = 9223372036854775807 | eval overflow = long_field + 1 | fields long_field, overflow
Expected Result:
Overflow should not silently wrap. Engine should either return validated error or safe overflow handling.
Actual Result:
2147483647 + 1 returns -2147483648
9223372036854775807 + 1 returns -9223372036854775808
Both return HTTP 200 with wrapped values.
Dataset Information
Dataset/Schema Type
Index Mapping
{
"mappings": {
"properties": {
"int_field": { "type": "integer" },
"long_field": { "type": "long" }
}
}
}
Sample Data
{
"int_field": 2147483647,
"long_field": 9223372036854775807
}
Bug Description
Issue Summary:
Integer and long arithmetic in eval wraps on overflow without warning.
Steps to Reproduce:
- Create index with
int_field and long_field.
- Insert a max-value record.
- Run both queries above.
- Observe wrapped negative results with HTTP 200.
Impact:
Silent numeric corruption in analytical results.
Query Information
PPL Command/Query:
Expected Result:
Overflow should not silently wrap. Engine should either return validated error or safe overflow handling.
Actual Result:
2147483647 + 1returns-21474836489223372036854775807 + 1returns-9223372036854775808Both return HTTP 200 with wrapped values.
Dataset Information
Dataset/Schema Type
Index Mapping
{ "mappings": { "properties": { "int_field": { "type": "integer" }, "long_field": { "type": "long" } } } }Sample Data
{ "int_field": 2147483647, "long_field": 9223372036854775807 }Bug Description
Issue Summary:
Integer and long arithmetic in
evalwraps on overflow without warning.Steps to Reproduce:
int_fieldandlong_field.Impact:
Silent numeric corruption in analytical results.