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] Tolerant type mismatch between field type and actual data #4330
What is the bug?
search source=log* | eval xx=flags * 100 returns HTTP 500 with ClassCastException when some documents have flags as a multi-valued field (array) despite the mapping being integer. The operation should be type-tolerant: compute for numeric scalars; return null for non-numeric or non-scalar values—never a 500.
How can one reproduce the bug?
###
POST {{baseUrl}}/_plugins/_ppl
Content-Type: application/x-ndjson
{
"query": "search source=log* | eval xx=flags * 100 "
}
{
"error": {
"reason": "There was internal problem at backend",
"details": "class java.util.ArrayList cannot be cast to class java.lang.Integer (java.util.ArrayList and java.lang.Integer are in module java.base of loader 'bootstrap')",
"type": "ClassCastException"
},
"status": 500
}
Activity
LantaoJin commentedon Sep 22, 2025
need a further discussion? no idea for now
penghuo commentedon Sep 23, 2025
Let's discuss in #4349