[BUG] ORDER BY on array values produces incorrect results #3133
Labels
bug
Something isn't working
catch-all acknowledged
Marks issues caught in catch-all triage for searchability
What is the bug?
When a field that contains array values is used in an ORDER BY clause, the comparisons are performed using only the first element of the array values.
Consider an index with the following data:
and this query:
the expected results are:
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Comparisons are performed on the array values as a whole. An array comparison is performed element by element until a difference is found.
What is your host/environment?
Do you have any screenshots?
N/A
Do you have any additional context?
Issue #1300 had a change recently merged in that allows array values to be used in query evaluation and in the result set.
The text was updated successfully, but these errors were encountered: