-
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
NPE when having two "should" sub-queries with one has_parent w/ inner_hits #50539
Labels
:Search/Search
Search-related issues that do not fall into other categories
Comments
Pinging @elastic/es-search (:Search/Search) |
I confirm the error on 7.x. The error happens in this case because inner hits get applied to all top hits, while they are relevant only to the second hit. |
mayya-sharipova
added a commit
to mayya-sharipova/elasticsearch
that referenced
this issue
Jan 7, 2020
When there several subqueries on different relations of the join field, and only one of subqueries is using inner_hits, NPE occurs. This PR prevents NPE error. Closes elastic#50539
mayya-sharipova
added a commit
that referenced
this issue
Jan 7, 2020
When there several subqueries on different relations of the join field, and only one of subqueries is using inner_hits, NPE occurs. This PR prevents NPE error. Closes #50539
mayya-sharipova
added a commit
that referenced
this issue
Jan 7, 2020
When there several subqueries on different relations of the join field, and only one of subqueries is using inner_hits, NPE occurs. This PR prevents NPE error. Closes #50539
mayya-sharipova
added a commit
that referenced
this issue
Jan 7, 2020
When there several subqueries on different relations of the join field, and only one of subqueries is using inner_hits, NPE occurs. This PR prevents NPE error. Closes #50539
@gbeskales thank you for filling the issue. The bug was fixed, and the patch will be available in the next releases of elasticsearch. |
SivagurunathanV
pushed a commit
to SivagurunathanV/elasticsearch
that referenced
this issue
Jan 23, 2020
When there several subqueries on different relations of the join field, and only one of subqueries is using inner_hits, NPE occurs. This PR prevents NPE error. Closes elastic#50539
This was referenced Feb 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Elasticsearch version (
bin/elasticsearch --version
):Version: 6.8.2, Build: oss/tar/b506955/2019-07-24T15:24:41.545295Z, JVM: 1.8.0_232
Plugins installed:
"repository-azure", "repository-gcs", "repository-hdfs", "repository-s3"
JVM version (
java -version
):openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode
OS version (
uname -a
if on a Unix-like system):Linux george-P51 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
java.lang.NullPointerException is thrown when having a bool query with two should sub-queries and when only one of them have "has_parent" with "inner_hits".
Steps to reproduce:
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: