Skip to content

[Transform] Add support for string_stats aggregation - #155698

Open
lh0156 wants to merge 2 commits into
elastic:mainfrom
lh0156:agent/transform-string-stats
Open

[Transform] Add support for string_stats aggregation#155698
lh0156 wants to merge 2 commits into
elastic:mainfrom
lh0156:agent/transform-string-stats

Conversation

@lh0156

@lh0156 lh0156 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Closes #51925

Overview

Add pivot transform support for the remaining string_stats aggregation.

Details

  • expose the five scalar string statistics as numeric multi-value metrics
  • provide output field names for transform mapping inference
  • reuse the existing numeric multi-value extraction path
  • add unit coverage and a single-node REST integration test

show_distribution is intentionally not exposed as a transform field because it is an object-valued optional response, while pivot output fields currently require scalar metric values.

Verification

  • :x-pack:plugin:transform:test focused pivot tests
  • Analytics string-stats regression tests
  • Transform and Analytics Spotless checks
  • TransformPivotRestIT#testPivotWithStringStats

@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team needs:triage Requires assignment of a team area label v9.6.0 labels Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team needs:triage Requires assignment of a team area label v9.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Transform] add support for extended_stats and string_stats aggregations

2 participants