-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
unsupported_operation_exception on collapse + docvalue_fields #96510
Comments
Pinging @elastic/es-search (Team:Search) |
Any news regarding this issue? Caused by: java.lang.UnsupportedOperationException |
After further debugging this, I discovered that the exception is only thrown when the collapse field is not included in the docvalue_fields; as soon as it is added to the docvalue_fields list, the error goes away :-) |
wow thanks @nemphys ! What a weird and tricky bug... We should at a minimum throw an error early indicating that if you are specifying fields to include, you must also include the collapse field. |
Or maybe silently include it by default when it is not there (?) |
Finally had some cycles to dig more into this. Found the silly bug. Should be fixed soon :) Thank you @nemphys for the detailed debugging & @dgilmanAIDENTIFIED for reporting!!! |
There were some optimizations that broke collapse fields automatically being added to `docvalue_fields` during the fetch phase. Consequently, users will get really weird errors like `unsupported_operation_exception`. This commit corrects the intended behavior of automatically including the collapse field in the docvalue_fields context during fetch if it isn't already included. closes: elastic#96510
…10154) There were some optimizations that broke collapse fields automatically being added to `docvalue_fields` during the fetch phase. Consequently, users will get really weird errors like `unsupported_operation_exception`. This commit corrects the intended behavior of automatically including the collapse field in the docvalue_fields context during fetch if it isn't already included. closes: #96510
Elasticsearch Version
8.8.0
Installed Plugins
No response
Java Version
bundled
OS Version
Linux 5.19.0-1022-aws #23~22.04.1-Ubuntu SMP Fri Mar 17 15:38:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Problem Description
ES returns unsupported_operation_exception: null instead of a descriptive error message for a minimal query with collapse and docvalue_fields
Steps to Reproduce
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: