Skip to content

Add support for storing and querying T-Digest sketches #137649

@not-napoleon

Description

@not-napoleon

Main meta issue for tracking the T-Digest field support

Field Mapper

ESQL Support

Since we want this to have parity with the Exponential Histogram field, this is the same list as #137549

  • Add a blockloader (Block loader and compute interface for t-digest field #138246)
  • Add an ESQL data and block type
  • Add merge aggregation (or support this in the exponential histogram merge agg)
  • Add support for PERCENTILES aggregation
  • Add support for MEDIAN aggregation
  • Add support for AVG aggregation
  • Add support for MIN aggregation
  • Add support for MAX aggregation
  • Add support for SUM aggregation
  • Add support for CASE ( as return value)
  • Add support for COALESCE
  • Add support for COUNT aggregation
  • Maybe add a new VALUE_COUNT aggregation (depends on the semantics of COUNT)
  • Add support for VARIANCE aggregation
  • Add support for STD_DEV aggregation
  • Add support for MEDIAN_ABSOLUTE_DEVIATION aggregation
  • Add support for == operator
  • Add support for string conversion (TO_STRING, TO_TDIGEST)

ESQL Support for Legacy Histograms

One of the goals for creating a t-digest data type in ESQL is support for legacy histogram field data. We intend to do this by creating a Histogram field type which can then be converted into a t-digest.

  • Histogram block loader
  • Histogram Data type
  • Histogram to T-Digest conversion function
  • Implicit conversion planner rule?

Classic Aggregation support

  • T-digest values source

This is the list of aggregations we support on legacy histograms (except for boxplot, but we should support that)

  • Add support for value_count
  • Add support for sum
  • Add support for average
  • Add support for min
  • Add support for max
  • Add support for percentiles
  • Add support for percentile rank
  • Add support for range
  • Add support for histogram
  • Add support for boxplot

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions