Skip to content

Conversation

@ioanatia
Copy link
Contributor

@ioanatia ioanatia commented Jun 11, 2025

related: #126553

Changes the FORK command so that we support more commands in FORK branches.

We want to change the grammar so that we support all commands, but we get a weird error for some of them.
The only ones that are not commands available only in snapshot, that we don't support yet are DROP/MV_EXPAND/RENAME/KEEP.
What these have in common is that they use qualifiedNamePatterns or qualifiedName.

In the meantime for all the rest, we added CSV tests to make sure we actually support them.

@ioanatia ioanatia added >non-issue :Analytics/ES|QL AKA ESQL ES|QL-ui Impacts ES|QL UI Team:Search - Relevance The Search organization Search Relevance team labels Jun 11, 2025
| changePointCommand
| completionCommand
| grokCommand
| {this.isDevVersion()}? inlinestatsCommand
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we just extend the grammar to support these 4 commands.
what we miss are:

  • some commands that are only available in snapshot that I am not sure when/if they will be available (like RERANK)
  • DROP/KEEP/MV_EXPAND/RENAME which produce a parsing error when used inside fork branches, so we exclude them for now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We discussed this and for now we don't need to support commands that are in snapshot.
So I am removing inlinestats

@ioanatia ioanatia marked this pull request as ready for review June 11, 2025 18:49
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jun 11, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/kibana-esql (ES|QL-ui)

@elasticsearchmachine elasticsearchmachine removed the Team:Search - Relevance The Search organization Search Relevance team label Jun 11, 2025
Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@carlosdelest carlosdelest left a comment

Choose a reason for hiding this comment

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

Looks good!

Spanish | null | fork2
;

forkBranchWithDrop-Ignore
Copy link
Member

Choose a reason for hiding this comment

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

Should we remove the -Ignore tests? They don't seem to be able to pass even when commands are supported (the results don't look right).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd like to keep them, because we would add them anyway when we fix the grammar in the next days.

@ioanatia
Copy link
Contributor Author

ioanatia commented Jun 13, 2025

the serverless checks failed, but it looked like it was a Buildkite fluke.
I have rerun the tests here and they are green

@ioanatia ioanatia changed the title ES|QL: Fork grammar update ES|QL: Fork grammar update: support GROK, CHANGE_POINT and COMPLETION in branches Jun 13, 2025
@ioanatia ioanatia changed the title ES|QL: Fork grammar update: support GROK, CHANGE_POINT and COMPLETION in branches ES|QL: Fork - support GROK, CHANGE_POINT and COMPLETION in branches Jun 13, 2025
@ioanatia ioanatia enabled auto-merge (squash) June 13, 2025 08:46
@ioanatia ioanatia disabled auto-merge June 13, 2025 08:47
@ioanatia ioanatia merged commit f9db8ec into elastic:main Jun 13, 2025
16 of 17 checks passed
@ioanatia ioanatia deleted the fork_grammar_update branch June 13, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL ES|QL-ui Impacts ES|QL UI >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants