-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Significant text aggregation nullpointers if subject field does not exist. #64045
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
Comments
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
@jtibshirani - this may be going back a bit but it looks like null field types became acceptable with field alias work in 15ff3da . Can you offer any insight on when might be the best point to validate the field name is not resolved? |
@not-napoleon is who I'd turn to to ask about this sort of thing in aggs. I don't know this code super duper well so I don't have a strong opinion other than to bring @not-napoleon into the conversation. |
I think the change in behaviour actually came in 91813ea when we merged sigterms and sigtext; that reworked the I think the simplest fix is to enforce field existence in the |
It was this comment from 15ff3da that made me hold off from that:
|
Oh boy! Past Nik is at it again, breaking stuff. |
Reviewing the change where I added this comment, it seems I was just trying to maintain the current logic (which didn't explicitly check for a null field type), and didn't mean to assert that we should support |
Thanks y'all for the feedback. |
…t exist (elastic#64144) Fixed Nullpointer in significant text agg - added test Closes elastic#64045
This bug looks to have crept in since version 7-something.
Given a query like:
Version 6.6 responds with
But 7.10 onwards errors with:
Stack trace is
The text was updated successfully, but these errors were encountered: