Skip to content
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

SQL: Fix NPE thrown if HAVING filter evals to null #35108

Merged
merged 1 commit into from
Oct 31, 2018

Conversation

matriv
Copy link
Contributor

@matriv matriv commented Oct 30, 2018

Surround script with nullSafeFilter also for AggFilter translation.
Fixed query translation tests to properly set onAggs.

Fixes: #35107

Surround script with `nullSafeFilter` also for `AggFilter` translation.
Fixed query translation tests to properly set `onAggs`.

Fixes: elastic#35107
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

Copy link
Member

@costin costin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matriv matriv merged commit bf6f521 into elastic:master Oct 31, 2018
@matriv matriv deleted the mt/fix-35107 branch October 31, 2018 09:32
matriv pushed a commit that referenced this pull request Oct 31, 2018
Surround script with `nullSafeFilter` also for `AggFilter` translation.
Fixed query translation tests to properly set `onAggs`.

Fixes: #35107
@matriv
Copy link
Contributor Author

matriv commented Oct 31, 2018

Backported to 6.x with 9eb5769

matriv pushed a commit that referenced this pull request Oct 31, 2018
Surround script with `nullSafeFilter` also for `AggFilter` translation.
Fixed query translation tests to properly set `onAggs`.

Fixes: #35107
@matriv
Copy link
Contributor Author

matriv commented Oct 31, 2018

Backported to 6.5 with de3d0e6

matriv added a commit to matriv/elasticsearch that referenced this pull request Oct 31, 2018
Include `null` literals when generating the painless script for `IN` expressions.
Previously, they were skipped, because of an issue that had been fixed with elastic#35108.

Fixes: elastic#35122
@colings86 colings86 added v6.5.0 and removed v6.5.1 labels Nov 2, 2018
matriv pushed a commit that referenced this pull request Nov 2, 2018
Include `null` literals when generating the painless script for `IN` expressions.
Previously, they were skipped, because of an issue that had been fixed with #35108.

Fixes: #35122
matriv pushed a commit that referenced this pull request Nov 2, 2018
Include `null` literals when generating the painless script for `IN` expressions.
Previously, they were skipped, because of an issue that had been fixed with #35108.

Fixes: #35122
matriv pushed a commit that referenced this pull request Nov 2, 2018
Include `null` literals when generating the painless script for `IN` expressions.
Previously, they were skipped, because of an issue that had been fixed with #35108.

Fixes: #35122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants