Skip to content

[ES|QL] Support for First/Last (#137408) - Disable vector dispatch for blocks#138390

Merged
mouhc1ne merged 1 commit intoelastic:mainfrom
mouhc1ne:disable-vector-dispatch-for-blocks
Nov 24, 2025
Merged

[ES|QL] Support for First/Last (#137408) - Disable vector dispatch for blocks#138390
mouhc1ne merged 1 commit intoelastic:mainfrom
mouhc1ne:disable-vector-dispatch-for-blocks

Conversation

@mouhc1ne
Copy link
Copy Markdown
Contributor

@mouhc1ne mouhc1ne commented Nov 20, 2025

  • Skip vector optimization for block arguments when grouping, to prevent grouping aggs from executing the no-op path.
  • This path will be enabled back once an actual implementation is in place.

I added to an item to #108385 's checklist to enable this back once a non-op vector implementation is added.

- Skip vector optimization for block arguments when grouping, to prevent grouping aggs from executing the no-op path.
@mouhc1ne mouhc1ne self-assigned this Nov 20, 2025
@mouhc1ne mouhc1ne added >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/Compute Engine Analytics in ES|QL :Analytics/ES|QL AKA ESQL and removed :Analytics/Compute Engine Analytics in ES|QL labels Nov 20, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

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.

This removes the "Vector dispatch" for these Block-only aggs because it was a noop which is only correct for the spatial agg. For FIRST and LAST it should do something.

Our plan is to add a more controllable Vector dispatch back. For now the side effect is that these spatial aggs will slow down if sent vectors - which they can't work on anyway.

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.

@craigtaverner should also double check, but it's good to me.

Copy link
Copy Markdown
Contributor

@craigtaverner craigtaverner 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 f4031c1 into elastic:main Nov 24, 2025
34 checks passed
afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Nov 26, 2025
- Skip vector optimization for block arguments when grouping, to prevent grouping aggs from executing the no-op path.
- This path will be enabled back once an actual implementation is in place.
ncordon pushed a commit to ncordon/elasticsearch that referenced this pull request Nov 26, 2025
- Skip vector optimization for block arguments when grouping, to prevent grouping aggs from executing the no-op path.
- This path will be enabled back once an actual implementation is in place.
@mouhc1ne mouhc1ne deleted the disable-vector-dispatch-for-blocks branch February 27, 2026 12:47
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.

4 participants