Skip to content

Conversation

@not-napoleon
Copy link
Member

This introduces an ESQL data type for TDigest fields. I've attempted to keep this as minimal as possible, so there's a lot of stuff that we expect data types to support that doesn't work yet (Case, Is Null, etc). That will come with future PRs.

The biggest change here is making TDigestHolder writable, which is required for using it in Literal. That in turn is required for the ESQL tests.

@not-napoleon not-napoleon added >non-issue :StorageEngine/ES|QL Timeseries / metrics / logsdb capabilities in ES|QL v9.3.0 labels Dec 5, 2025
not-napoleon and others added 10 commits December 5, 2025 16:12
 Conflicts:
	server/src/main/resources/transport/upper_bounds/9.3.csv
 Conflicts:
	server/src/main/resources/transport/upper_bounds/9.3.csv
	x-pack/plugin/esql/qa/testFixtures/src/main/java/org/elasticsearch/xpack/esql/EsqlTestUtils.java
	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/nulls/Coalesce.java
@not-napoleon not-napoleon marked this pull request as ready for review December 8, 2025 17:55
@not-napoleon not-napoleon requested a review from dnhatn December 8, 2025 17:55
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

One comment, but LGTM. Thanks Mark!

this(encodeCentroidsAndCounts(centroids, counts), min, max, sum, valueCount);
}

public TDigestHolder(StreamInput in) throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

We usually place readFrom and writeTo next to each other so they can be easily scanned and compared.

@not-napoleon not-napoleon enabled auto-merge (squash) December 9, 2025 14:30
@not-napoleon not-napoleon merged commit 31c5a43 into elastic:main Dec 9, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :StorageEngine/ES|QL Timeseries / metrics / logsdb capabilities in ES|QL Team:StorageEngine v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants