-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Null Pointer when using tophits on double nested field #33163
Labels
Comments
jimczi
added a commit
to jimczi/elasticsearch
that referenced
this issue
Aug 27, 2018
If an exclude or an include clause removes an entry to a nested field in the original source at query time, the creation of nested hits fails with an NPE. This change fixes this exception and replaces the nested document source with an empty map. Closes elastic#33163 Closes elastic#33170
Pinging @elastic/es-search-aggs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Elasticsearch version (
bin/elasticsearch --version
): 6.3.2Plugins installed: []
JVM version (
java -version
): 1.8.0_171OS version (
uname -a
if on a Unix-like system): Alpine 3.8Description of the problem including expected versus actual behavior:
Prerequisites to reproduce the problem:
The result is a failing shard with a nullpointer as reason. You don't see this problem when you only have one level of nesting or when there are instances that contain both fields.
Steps to reproduce:
The result of the last command is as follows:
Provide logs (if relevant):
Additional logs seen in the server logs:
The text was updated successfully, but these errors were encountered: