You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Parsing fails after aggregation when field types are transformed to non-numeric strings #4115
What is the bug?
When operations transform numeric fields to produce non-numeric string values (e.g., "30-40", "20-25"), the response parser fails. The aggregation itself executes correctly in OpenSearch, but parsing the response fails because the parser uses type information that is not updated.
How can one reproduce the bug?
This issue affects multiple operations that transform field types:
Example 1: bin command produces range strings
curl -X POST "localhost:9200/_plugins/_ppl" \
-H "Content-Type: application/json" \
-d '{"query":"source=accounts | bin age span=10 | stats count() by age"}'
Error: For input string: "30-40"
Example 2: eval with string concatenation
curl -X POST "localhost:9200/_plugins/_ppl" \
-H "Content-Type: application/json" \
-d '{"query":"source=accounts | eval age = CAST(age AS STRING) + \"-25\" | stats count() by age | head 3"}'
Error: For input string: "20-25"
Both fail with:
{
"error": {
"reason": "There was internal problem at backend",
"details": "java.sql.SQLException: exception while executing query: For input string: \"20-25\"",
"type": "RuntimeException"
},
"status": 500
}
What is the expected behavior?
Expected for bin command:
changed the title [-][BUG] Aggregation pushdown fails when field type changes to produce non-numeric strings[/-][+][BUG] Parsing fails after aggregation when field types are transformed to non-numeric strings[/+]on Aug 22, 2025
Activity
[-][BUG] Aggregation pushdown fails when field type changes to produce non-numeric strings[/-][+][BUG] Parsing fails after aggregation when field types are transformed to non-numeric strings[/+]