-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Change exceptions to IllegalArgumentException in GroupingDocValuesSelector #128348
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
Conversation
|
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
ChrisHegarty
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
|
Thanks for fixing this, did you see this in practice? I wonder how users are going to experience this error. Is there anything else we can do to fail earlier? |
I wondered the same. The issue here is for multi-value fields as the only way to check for it is looking into the actua data. I am not sure if we can check before it happens. |
|
Agreed @iverase we don't make distinctions around number of values in Elasticsearch, sounds like there isn't much we can do about this other than changing the status code. The error is pretty clear though, it should be easy to understand. Maybe the id of the doc is confusing, but we don't have the _id available when the error is thrown. |
💔 Backport failed
You can use sqren/backport to manually backport by running |
…ector (elastic#128348) # Conflicts: # server/src/main/java/org/elasticsearch/lucene/grouping/GroupingDocValuesSelector.java
The exceptions happens when user provides unsupported doc value types (either the type is wrong or it is multi-valued) so the rest status code should be 400 instead of 500.
Current error: