-
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
Advanced setting to show fields regardless of conflict type #14937
Comments
There might be a possible workaround that involves using scripted fields. Consider the following dataset:
If I created an index pattern
I can now use that scripted field to build visualizations, dashboards, etc. |
Thanks @chrisronline. While this is certainly possible, it's definitely not ideal. The purpose of this issue is to have the option natively in Kibana. For anyone looking to solve this issue today, @chrisronline's comment above is a workaround today |
To be clear, what @chrisronline posted and what we're proposing to add to Kibana are apples and oranges. The proposal in Kibana is to give people the ability to opt out of assumptions Kibana makes based on field types and just let people try to do whatever they want to any field, which is a considerably worse experience than seamlessly handling the conflicts in the query itself, which is what the scripted field is doing. |
If there are documents without the field (or multiple indices in the index pattern where one or more indices do not contain the field), the workaround script will fail at the ES level, so I have added a pre-check to it:
|
@chrisronline @spalger @epixa is this still something we plan to address in a 6.x release? I remember some early brainstorm conversations around this and have heard similar requests from some of our larger customers. Think we can revisit? |
@alexfrancoeur I think it's probably too early to tell. |
This is another example of a type conflict Kibana does not handle today (concrete vs. object field): #26583 |
Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment. |
In 5.5 we no longer show field conflicts for "like" types and allow you to select a field for a visualization that resolve to the same Kibana type. This is best described in this comment #13070 (comment)
Today, Kibana will not allow you to select a field for a visualization if there is any kind of conflict. While the adjustments made in 5.5 makes this experience a bit better, there are still scenarios in which field conflicts occur for dissimilar types. For example a field who had
text
type and the mapping changed tointeger
.We should provide an outlet for users to override the assumptions Kibana makes about field types. If there is a conflict, a user should be able to toggle an advanced setting to ignore these conflicts and allow a user to select this field regardless. If the visualization attempted to aggregate on a non-supported or conflicted type, Elasticsearch should throw an error and surface this in Kibana.
The text was updated successfully, but these errors were encountered: