Skip to content

ESQL: Implement coalesce for exponential histograms#137897

Merged
JonasKunz merged 9 commits intoelastic:mainfrom
JonasKunz:exp-histo-coalesce
Nov 17, 2025
Merged

ESQL: Implement coalesce for exponential histograms#137897
JonasKunz merged 9 commits intoelastic:mainfrom
JonasKunz:exp-histo-coalesce

Conversation

@JonasKunz
Copy link
Copy Markdown
Contributor

Adds coalesce support for exponential histograms, part of #137549.

@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team v9.3.0 labels Nov 11, 2025
@JonasKunz JonasKunz marked this pull request as ready for review November 12, 2025 15:24
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Nov 12, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

"src/main/generated-src/generated/**/*.java"
"src/main/generated-src/generated/**/*.java",
// This file contains too long lines for spotless, but we don't want to mess with the template unnecessarily
"src/main/generated-src/org/elasticsearch/xpack/esql/expression/function/scalar/nulls/CoalesceExponentialHistogramEvaluator.java"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The alternative to this excldue would be to adjust the line breaks in the template - let me know what you prefer

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@nik9000 suggested to try to see if we can somehow selectively disable the check only for those lines. I'll give that a try and see if I can make it work

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It seems like the spotless config only allows for a single comment pair to disable spotless selectively, which is already taken by // begin generated imports. We'd have to replace that with something generic like // spotless:off if we want to go that route.

I know inserted comments to force line breaks in the template instead, please let me know if that is fine for you.

Copy link
Copy Markdown
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

I had just scanned the generated code before, but now I've checked it all. The whole thing looks good to me.

@JonasKunz JonasKunz merged commit 6e29516 into elastic:main Nov 17, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants