-
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
reverts #150954 #152721
reverts #150954 #152721
Conversation
@thomasneirynck this PR reverts the changes that Matt had done on 8.7 to mark this type of field as not aggregatable. Are we ok to merge it now? Lens is going to support these fields. Maps and canvas(?) should possibly do some changes (either support it or hide it). cc @elastic/kibana-presentation |
The problem was that having this flagged as aggregatable was causing a toast storm in places like ML data visualizer in 8.7, silent errors in Discover, and visible errors in Lens/Maps. (#148518). I understand this trade-off was accepted, but I believe only in the context of Lens, where the error is "opt-in" (since user needs to explicitly select the field). In other apps, like ML, they show up point-blank. A robust path forward post 8.7 is for field-caps to indicate exactly what aggregations are supported/not-supported.(elastic/elasticsearch#93539 (comment)) This will be more effort on the client-side, because it will have to accomodate this new metadata and use it accordingly (e.g. Lens disabling certain aggs/enabling others). Already the problem has been mitigated somewhat for 8.7, removing the counter field-type from non-tsdb indices (elastic/elasticsearch#93749 (comment)). We do need to move forward, but I don't think we can just re-enable, as it will reintroduce the same errors on the ML-side for tsdb-stream. cc @peteharverson @droberts195 If we just re-enable this, we would need to a solution for ML. |
regarding field caps providing info on what aggregations are supported:
|
Regarding counter fields on non-tsdb indices:
|
I don't think this is true. The
Yes, and it is going to look like this: elastic/elasticsearch#93884
The behaviour is that time series attributes in the mapping will be ignored on non tsdb data streams. |
@thomasneirynck it seems that the issue that we encountered in 8.7 is not going to happen now. @ppisljar did some tests on what is going to be affected and these are:
They can possibly filterout these fields. |
What does the "Field Statistics" tab in Discover look like for the logs sample data after these changes? This is what it looks like before these changes: What does it look like with these changes? It's a really bad user experience if Discover doesn't work for one of the sample data sets that comes with Kibana. That is the sort of thing that could put a first time user off from continuing their trial into a second day. The idea of that view is to give users a vague idea of what sorts of values are in each field in their data. It's not designed to be mega accurate, just some eye candy really. We'll need to decide what to show for counter fields in the "Distributions" column using one of the aggregations that works. |
for logs sample dataset it works as expected. for datasets with time series mode on and counter metric field it errors out |
this PR addresses the issue in ML and discover: #152898 |
this PR addresses the issue in Maps application: #152899 |
I created an issue to summarize the problem here #152912. It seems there are basically two trains of thought:
thx @ppisljar for making an explicit suggestion on how this could be addressed without using the new proposed field_caps metadata. |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
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.
changes lgtm, nice work
Summary
reverts #150954
Time Series Metric Counter field is aggregatable and should be reported as such. Field is however different from a normal number field as it doesn't support all aggregations the normal number field does. This is similar to rolled up number fields.
Editors should take this into account to make the best possible experience for the user.
since reverting the original PR the following editors have been updated to support this kind of fields: