Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Aug 5, 2025

I'm going to be reusing the evaluators from FIRST_OVER_TIME and LAST_OVER_TIME for FIRST and LAST. This renames the evaluators themselves to indicate that they are the actual evaluators for FIRST and LAST.

Relates to #108385

I'm going to be reusing the evaluators from FIRST_OVER_TIME and
LAST_OVER_TIME for FIRST and LAST. This renames the evaluators
themselves to indicate that they are the actual evaluators for FIRST and
LAST.

Relates to elastic#108385
@nik9000 nik9000 requested a review from dnhatn August 5, 2025 17:36
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Aug 5, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@nik9000 nik9000 requested a review from limotova August 5, 2025 17:37
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! Just one comment

* This class is generated. Edit `X-ValueByLongAggregator.java.st` instead.
*/
@GroupingAggregator(
{ @IntermediateState(name = "timestamps", type = "LONG_BLOCK"), @IntermediateState(name = "values", type = "$TYPE$_BLOCK") }
Copy link
Contributor

Choose a reason for hiding this comment

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

A bit of a nitpick: I think it might make sense to change the name from timestamps to something else if we're thinking to generalize this aggregation (is longs too generic?), it might be confusing later on otherwise

Copy link
Member Author

Choose a reason for hiding this comment

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

It does feel pretty generic. I'm not sure what's better though.

In my bring working on LAST and FIRST I still did it for just DATETIME or DATE_NANOS - though it could work for any long.... I just didn't plug it in.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I see, in that case leaving it as timestamps might be fine. I think I misunderstood because removing the OverTime bit made me think it would eventually be done over any long

Copy link
Member Author

Choose a reason for hiding this comment

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

I had thought we'd do it over any long. Still could, I guess.

Maybe I just rename to FirstByTimestamp for now and if we make it any long I'll rename again. it's not hard.

@nik9000
Copy link
Member Author

nik9000 commented Aug 6, 2025

OK! Updated. The rename is now pretty tiny. I still like it, but it's not critical.

@nik9000 nik9000 requested a review from limotova August 6, 2025 12:17
@nik9000 nik9000 merged commit 2eebbb4 into elastic:main Aug 6, 2025
33 checks passed
szybia added a commit to szybia/elasticsearch that referenced this pull request Aug 6, 2025
…cking

* upstream/main: (24 commits)
  Revert "[Fleet] add privileges to `kibana_system` to read integrations data (elastic#132400)" (elastic#132499)
  ESQL: Rename evaluators for FIRST and LAST (elastic#132466)
  Add inference fields to semantic text docs (elastic#132471)
  ESQL: Allow FIRST and LAST as method name (elastic#132469)
  ESQL: Add javadoc for PushDownAndCombineFilters (elastic#132484)
  Misc cleanups in Coordinator (elastic#132452)
  [DiskBBQ] Write the maximum posting list size to avoid resizing the docId array (elastic#132447)
  Improve exception handling for JsonXContentParser (elastic#123439)
  Clarify quantization on semantic_text BBQ dense vector default (elastic#132470)
  Fix test infra NPE in doEnsureClusterStateConsistency (elastic#131859)
  Stabilize CancellableTasksIT#testRemoveBanParentsOnDisconnect (elastic#131858)
  Move ClusterApplierService assertion after logging exception (elastic#132446)
  ESQL: Support for multi-argument aggs (elastic#132424)
  Update wolfi (versioned) (elastic#132457)
  ESQL: Fix Function javadoc (elastic#132399)
  [ML] Inference API disable partial search results (elastic#132362)
  Unmute testTermsQuery tests (elastic#132409)
  Fix index lookup when field-caps returns empty mapping (elastic#132138)
  CompressorFactory.compressor (elastic#132448)
  ESQL add formatting to plans in javadoc (elastic#132421)
  ...
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.

3 participants