-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] GROUP BY does not work properly with array values #3132
Labels
bug
Something isn't working
Comments
This appears to be due to how the OpenSearch engine performs grouping on multi-valued fields.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the bug?
If a field that contains array values is used in a GROUP BY clause, each value in the array is considered as a separate row value.
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?
Preserve the array value and perform comparisons on the array value as a whole. Only group rows that have the same array values.
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: