Skip to content

Conversation

@mouhc1ne
Copy link
Contributor

  • Minor refactoring in build.gradle to allow the generation of the two variants of state classes (e.g.: LongLongState and AllLongLongState)
  • Generate the new two state files using All-X-2State.java.st, for all types.
  • Generate the new timestamp aggregator files using All-X-ValueByTimestampAggregator.java.st, for all types.
  • Register ALL_LAST as snapshot function
  • Augment existing csv tests to exercise ALL_LAST as well, and to check for all supported types.

@mouhc1ne mouhc1ne requested review from dnhatn and nik9000 November 13, 2025 21:10
@elasticsearchmachine elasticsearchmachine added v9.3.0 needs:triage Requires assignment of a team area label labels Nov 13, 2025
@mouhc1ne
Copy link
Contributor Author

Two things I know are missing that I will get to eventually in another PR.

  1. Support to function signature for both ALL_FIRST and ALL_LAST. Right now, the infrastructure is there (agg, supplier, etc.) but method signature doesn't support that.
  2. Add doc examples for both functions.

@mouhc1ne mouhc1ne added >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL labels Nov 13, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Nov 13, 2025
- Minor refactoring in "build.gradle" to allow the generation of the two variants of state classes (e.g.: LongLongState and AllLongLongState)
- Generate the new two state files using "All-X-2State.java.st", for all types.
- Generate the new timestamp aggregator files using "All-X-ValueByTimestampAggregator.java.st", for all types.
- Register ALL_LAST as snapshot function
- Augment existing csv tests to exercise ALL_LAST as well, and to check for all supported types.
@nik9000
Copy link
Member

nik9000 commented Nov 14, 2025

  • All-X-2State.java.st

We've been starting all templates with X- even if the position of the type name is not at the front.

mouhc1ne and others added 7 commits November 17, 2025 09:27
- Rename templates to start with "X-"
- Rename templates to start with "X-"
- Include the "all" prefix in the describe() method.
- Add an entry for ALL_LAST in agg writables.
Copy link
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.

LGTM

@mouhc1ne mouhc1ne merged commit 6bf5999 into elastic:main Nov 19, 2025
34 checks passed
ncordon pushed a commit to ncordon/elasticsearch that referenced this pull request Nov 26, 2025
…elastic#138066)

- Minor refactoring in "build.gradle" to allow the generation of the two variants of state classes (e.g.: LongLongState and AllLongLongState)
- Generate the new two state files using "All-X-2State.java.st", for all types.
- Generate the new timestamp aggregator files using "All-X-ValueByTimestampAggregator.java.st", for all types.
- Register ALL_LAST as snapshot function
- Augment existing csv tests to exercise ALL_LAST as well, and to check for all supported types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >enhancement 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