-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Maps] filtered out docs with empty entity ids for tracks and top-hits layers #107680
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
Failed functional test
Generated filter.
|
this is because of kibana/packages/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts Line 32 in eeb88b0
For scripted-fields, it looks at the field-type and coerces the value to a number. Wondering if we should use the exist-filter here:
Also - to. be fair, I'm not sure if this is a bug perse, since this hits an edge-case (ie. users using a numeric pivot-field, which I would guess is very rare). I think this PR could still capture 95% of use-cases, if we add this filter only for fields of type |
@elasticmachine merge upstream |
I have added a check to ensure the field is a string before adding the filters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx, this is a nice one
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…s layers (elastic#107680) * [Maps] filtered out docs with empty entity ids for tracks and top-hits layers * eslint * add type check for string fields Co-authored-by: Kibana Machine <[email protected]>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…s layers (#107680) (#108100) * [Maps] filtered out docs with empty entity ids for tracks and top-hits layers * eslint * add type check for string fields Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Nathan Reese <[email protected]>
Fixes #105599