Skip to content

[Feature Request] Generic Numeric Type Converters for Numeric Field Data #14657

@sarthakaggarwal97

Description

@sarthakaggarwal97

Is your feature request related to a problem? Please describe

With an ongoing introduction of Star Tree (Composite Field), there was a requirement to convert the sortable long value of a field to an original numeric type value in order to perform aggregations via star tree.

Currently, we picked up different numeric conversions for different numeric types to incorporate for star tree. This is prone to inconsistent results in cases where the type conversion implementation changes in the original aggregation flow.

Describe the solution you'd like

A generic utility to perform numeric type conversion across OpenSearch. This will become a one-stop utility for numeric conversions.

Related component

Indexing

Metadata

Metadata

Labels

IndexingIndexing, Bulk Indexing and anything related to indexingSearch:AggregationsenhancementEnhancement or improvement to existing feature or request

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions