This regular query:
GET /twitter20230601-times/_search
{
"_source": ["counts"]
}
results:
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "twitter20230601-times",
"_id": "zomfv5gB5TGBsgBW5jx1",
"_score": 1,
"_source": {
"counts": [
5000,
5000,
5000,
5000,
5000,
5000,
5000,
5000,
4933
]
}
}
]
}
}
This ES|QL query:
POST /_query
{
"query": """
FROM twitter20230601-times | KEEP counts
"""
}
results:
{
"took": 5,
"is_partial": false,
"documents_found": 1,
"values_loaded": 9,
"columns": [
{
"name": "counts",
"type": "long"
}
],
"values": [
[
[
4933,
5000,
5000,
5000,
5000,
5000,
5000,
5000,
5000
]
]
]
}
The return values for the ES|QL query are in reverse order. This is wrong. The regular query returns the values in the correct order.
Is this a bug, or is there something about ES|QL I don’t understand?