-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Lens] Do not use "Top values" agg for number fields in tables #75279
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
I think this is possible within the current suggestion system if we make this change:
|
I'm just realizing - As this is happening when you are dragging the field into the dimension trigger on the right side, is the suggestion system even used for that operation? Looks like it simply calls kibana/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.tsx Line 109 in bf04235
|
I think you're right that there is inconsistency with the |
Maybe we have to refactor this to use the suggestion system in that case as well to solve it in a nice way. As a stopgap measure we could prefer number field metrics to number field buckets if both are possible by the given operation filter. It wouldn't change any apis but it would be pretty hacky within the datasource Instead of picking the first one here: kibana/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.tsx Line 152 in bf04235
|
This is no longer happening - for metrics it will default to median (which makes sense), for buckets it will default to histogram |
Currently, when dropping a number field in the empty dimension trigger of the data table, it will add a "Top values" column by that field. In most cases this is not the right thing to do, as number fields are commonly shown as a metric.
In this scenario, an average operation for the dropped number field should be added.
The text was updated successfully, but these errors were encountered: