Reproducing a known bug, we can run the following query against a local cluster with the csv test data:
curl -u elastic:password -H "Content-Type: application/json" "127.0.0.1:9200/_query/async" -d '
{ "wait_for_completion_timeout": "1ms",
"query": "from employees | eval x = salary::long | stats y = first(x, x)"}'
->
[2026-02-11T16:01:14,549][WARN ][o.e.c.o.Driver ] [runTask-0] Error running driver [data] java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
curl -u elastic:password -H "Content-Type: application/json" "127.0.0.1:9200/_query" -d '
{
"query": "from employees | eval x = salary::long | stats y = first(x, x)"}'
->
[2026-02-11T16:01:51,019][WARN ][o.e.x.e.a.EsqlResponseListener] [runTask-0] partial failure at path: /_query, params: {} shard [[_na_][employees][0]], reason [java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
[2026-02-11T16:01:51,019][WARN ][o.e.x.e.a.EsqlResponseListener] [runTask-0] partial failure at path: /_query, params: {} shard [[_na_][employees][0]], reason [java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
Reproducing a known bug, we can run the following query against a local cluster with the csv test data: