Skip to content

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jul 31, 2025

Time series aggregations needed a method like:

static Block evaluateFinal(
  GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx
)

and other aggregations needed to write it:

static Block evaluateFinal(
  GroupingState state, IntVector selected, DriverContext ctx
)

While slightly shorter, it isn't worth having two ways to do it. This is purely mechanical change to make everything work like the time series aggregations.

It also adds a few more of the "we're not sorting these imports" comments to the template generated classes.

Relates to #108385

Time series aggregations needed a method like:
```
static Block evaluateFinal(
  GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx
)
```

and other aggregations needed to write it:
```
static Block evaluateFinal(
  GroupingState state, IntVector selected, DriverContext ctx
)
```

While slightly shorter, it isn't worth having two ways to do it. This is
purely mechanical change to make everything work like the time series
aggregations.

It also adds a few more of the "we're not sorting these imports"
comments to the template generated classes.

Relates to elastic#108385
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jul 31, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@nik9000 nik9000 requested review from dnhatn and limotova July 31, 2025 16:30
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.

LGTM. Thanks Nik!

@nik9000 nik9000 added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) and removed auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Jul 31, 2025
@nik9000 nik9000 enabled auto-merge (squash) July 31, 2025 17:41
Copy link
Contributor

@limotova limotova left a comment

Choose a reason for hiding this comment

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

LGTM!

@nik9000
Copy link
Member Author

nik9000 commented Aug 1, 2025

I'm genuinely surprised, but this merged cleanly with #132287

@nik9000 nik9000 merged commit e9bef0d into elastic:main Aug 1, 2025
33 checks passed
szybia added a commit to szybia/elasticsearch that referenced this pull request Aug 1, 2025
…cking

* upstream/main: (166 commits)
  Reduce inactive sink interval in VectorSimilarityFunctionsIT (elastic#132288)
  ESQL: Allow agg tests to process many columns (elastic#132358)
  Update analysis-lowercase-tokenfilter.md (elastic#132359)
  Add Sparse Vector Index Options Settings to Semantic Text Field (elastic#131058)
  Collect node thread pool usage for shard balancing (elastic#131480)
  Add tasks to validate new style transport versions (elastic#131782)
  Mute org.elasticsearch.search.routing.SearchReplicaSelectionIT testNodeSelection elastic#132354
  Mute org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT testBadAsyncId elastic#132353
  Fixes DenseVectorFieldIndexTypeUpdateIT release tests (elastic#132346)
  Fix testCloseOrReallocateDuringPartialSnapshot (elastic#132049)
  (Doc) ILM Force Merge not on HDD and happens on hosting node not current phase tier (elastic#130280)
  Run GeoIp YAML tests in multi-project cluster and fix bug discovered by tests (elastic#131521)
  Unmutes elastic#132111, seems a transient, non reproducible issue (elastic#132253)
  Mute org.elasticsearch.search.suggest.phrase.PhraseSuggesterIT testPhraseSuggestionWithNgramOnlyAnalyzerThrowsException elastic#132347
  Add AI21 support to Inference Plugin (elastic#131238)
  OpenJDK EA builds should use https instead of http (elastic#132297)
  ESQL: Normalize timeseries aggs slightly (elastic#132284)
  Avoid internal server error on suggester ngram bad request (elastic#132321)
  [ES|QL] Rerank operator improvements (elastic#132318)
  Mute org.elasticsearch.xpack.logsdb.qa.LogsDbVersusReindexedLogsDbChallengeRestIT testTermsQuery elastic#132337
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants