-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Always report dimension and time series metric attributes in field caps api #93749
Always report dimension and time series metric attributes in field caps api #93749
Conversation
…e defined on non tsdb indices. The field caps only reports both attributes on tsdb indices. This change alters the field caps api to also return these attributes when specified on non tsdb indices. Relates to elastic#93539
Hi @martijnvg, I've created a changelog YAML for you. |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
Corresponding Kibana PR here elastic/kibana#150954 |
I think this reverts the change implemented at PR #88695 This PR would allow Kibana to distinguish standard from time-series indices. As Kibana does not read the index settings and the only way to get information for fields is from the field caps API, we need to provide a way to distinguish metric/dimension fields that belong to time-series indices vs standard indices. Back then we had agreed with Kibana team that field caps will expose metrics and dimensions only for time-series indices. For standard indices, it does not make sense to expose those parameters. |
@mattkime @thomasneirynck Regarding the issue that you describe here, the So looks like this fix would break other things. I like to fix this problem differently. If Ideally we shouldn't allow defining |
thanks @martijnvg
So to confirm, practically speaking, for 8.7:
For end-users, the combination of both PRs will be:
|
A non tsdb data stream is unsorted and when defining counter fields on such data streams we can't detect counter resets. I guess logically it doesn't make sense either, but it is tolerable if we threat counter fields in non tsdb data streams as regular number fields.
Yes.
Yes, and we're going to look into improving the field caps api so that fields don't need to be hidden.
Yes. |
The
time_series_dimension
andtime_series_metric
attributes can be defined on non tsdb indices. The field caps only reports both attributes on tsdb indices. This change alters the field caps api to also return these attributes when specified on non tsdb indices.Relates to #93539