Skip to content

[TSDB] Expose aggregate_metric_double fields as their own field type instead of double#87849

Merged
csoulios merged 6 commits intoelastic:mainfrom
csoulios:agg-metric-field-caps
Sep 15, 2022
Merged

[TSDB] Expose aggregate_metric_double fields as their own field type instead of double#87849
csoulios merged 6 commits intoelastic:mainfrom
csoulios:agg-metric-field-caps

Conversation

@csoulios
Copy link
Copy Markdown
Contributor

@csoulios csoulios commented Jun 20, 2022

Fields of type aggregate_metric_double are currently exposed in the field caps API as fields of type double

This PR changes this behavior so that aggregate_metric_double fields are exposed with their own field type.

Context

In the past, we had taken the decision to expose fields of type aggregate_metric_double as regular double fields in the field caps API. This decision intended to hide the complexity of this field from Kibana and only expose it as a simple numeric field. After recent discussions with the Kibana team, we decided that Elasticsearch should be transparent as to when a field is an aggregate_metric_double field and Kibana will deal with managing the field type.

Consequences

This is a breaking change

Relates to #74660

@csoulios csoulios added >non-issue :Search Foundations/Mapping Index mappings, including merging and defining field types :StorageEngine/TSDB You know, for Metrics v8.4.0 labels Jun 20, 2022
@elasticmachine elasticmachine added Team:Search Meta label for search team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Jun 20, 2022
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search (Team:Search)

@csoulios csoulios requested a review from romseygeek June 20, 2022 15:58
@sethmlarson sethmlarson added the Team:Clients Meta label for clients team label Jun 20, 2022
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/clients-team (Team:Clients)

Copy link
Copy Markdown
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @csoulios

@elasticsearchmachine elasticsearchmachine changed the base branch from master to main July 22, 2022 23:06
@mark-vieira mark-vieira added v8.5.0 and removed v8.4.0 labels Jul 27, 2022
@elasticsearchmachine elasticsearchmachine removed the Team:Clients Meta label for clients team label Jul 27, 2022
@csoulios
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@csoulios csoulios merged commit aad9137 into elastic:main Sep 15, 2022
@csoulios csoulios deleted the agg-metric-field-caps branch September 15, 2022 08:18
csoulios added a commit that referenced this pull request Sep 15, 2022
Since aggregate_metric_field was presented as a double in the field caps API,
we had a committed a temporary change that would treat aggregate_metric_double
fields as a special case.

After merging PR #87849 that exposes aggregate_metric_field with its own field type
in all cases, we can revert this change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking >non-issue :Search Foundations/Mapping Index mappings, including merging and defining field types :StorageEngine/TSDB You know, for Metrics Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Search Meta label for search team v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants