-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ES|QL: support dot and parameters in FUSE GROUP BY #135901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
luigidellaquila
merged 9 commits into
elastic:main
from
luigidellaquila:esql/fuse_with_dot
Oct 3, 2025
Merged
ES|QL: support dot and parameters in FUSE GROUP BY #135901
luigidellaquila
merged 9 commits into
elastic:main
from
luigidellaquila:esql/fuse_with_dot
Oct 3, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
|
Hi @luigidellaquila, I've created a changelog YAML for you. |
…o esql/fuse_with_dot
ioanatia
approved these changes
Oct 3, 2025
leemthompo
reviewed
Oct 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just have a tiny nitty suggestion on the changelog summary :)
Co-authored-by: Liam Thompson <[email protected]>
1 task
sddonne
added a commit
to elastic/kibana
that referenced
this pull request
Oct 6, 2025
Part of #236938 ## Summary This PR adds `AST` support for the new`FUSE` parameters. ``` fuseCommand : DEV_FUSE (fuseType=identifier)? (fuseConfiguration)* ; fuseConfiguration : SCORE BY score=qualifiedName | KEY BY key=fields | GROUP BY group=qualifiedName | WITH options=mapExpression ; ``` `FUSE <fuse_method> SCORE BY <score_column> GROUP BY <group_column> KEY BY <key_columns> WITH <options>` ### Some Examples `| FUSE LINEAR # Merge results using linear combination of scores (equal weights by default)` `| FUSE LINEAR WITH { "normalizer": "minmax" } # Linear combination with min-max normalization (scales scores to 0-1 range) ` `| FUSE LINEAR WITH { "weights": { "fork1": 0.7, "fork2": 0.3 }, "normalizer": "minmax" } # Weighted linear combination: 70% lexical, 30% semantic, with min-max normalization` ### Note No tests has been added to check parameters or fields with dots, as the parser needs this [fix](elastic/elasticsearch#135901) to be merged to support them. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
rylnd
pushed a commit
to rylnd/kibana
that referenced
this pull request
Oct 17, 2025
Part of elastic#236938 ## Summary This PR adds `AST` support for the new`FUSE` parameters. ``` fuseCommand : DEV_FUSE (fuseType=identifier)? (fuseConfiguration)* ; fuseConfiguration : SCORE BY score=qualifiedName | KEY BY key=fields | GROUP BY group=qualifiedName | WITH options=mapExpression ; ``` `FUSE <fuse_method> SCORE BY <score_column> GROUP BY <group_column> KEY BY <key_columns> WITH <options>` ### Some Examples `| FUSE LINEAR # Merge results using linear combination of scores (equal weights by default)` `| FUSE LINEAR WITH { "normalizer": "minmax" } # Linear combination with min-max normalization (scales scores to 0-1 range) ` `| FUSE LINEAR WITH { "weights": { "fork1": 0.7, "fork2": 0.3 }, "normalizer": "minmax" } # Weighted linear combination: 70% lexical, 30% semantic, with min-max normalization` ### Note No tests has been added to check parameters or fields with dots, as the parser needs this [fix](elastic/elasticsearch#135901) to be merged to support them. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Analytics/ES|QL
AKA ESQL
>bug
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
v9.3.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding support for parameters and for dots in attribute names used by FUSE command, eg.
The problem was just missing trokens in the lexer definition for FUSE