-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ES|QL] JOIN
command parser support
#202749
Conversation
Pinging @elastic/kibana-esql (Team:ESQL) |
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.
Awesome, there is a jest test failing but it looks good so I approve as there is no need to review again
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Page load bundle
History
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12159601149 |
## Summary Partially addresses elastic#200858 - Adds `JOIN` command support in Kibana ES|QL AST and parser. - Adds `commandType` to AST nodes, to support `<TYPE> JOIN ...` in join commands. - Adds `AS` binary expression, to support *target* aliassing in `JOIN` commands: `LEFT JOIN a AS b` ### 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 (cherry picked from commit df37092)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
) # Backport This will backport the following commits from `main` to `8.x`: - [[ES|QL] `JOIN` command parser support (#202749)](#202749) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Vadim Kibana","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-04T12:19:59Z","message":"[ES|QL] `JOIN` command parser support (#202749)\n\n## Summary\r\n\r\nPartially addresses https://github.com/elastic/kibana/issues/200858\r\n\r\n- Adds `JOIN` command support in Kibana ES|QL AST and parser.\r\n- Adds `commandType` to AST nodes, to support `<TYPE> JOIN ...` in join\r\ncommands.\r\n- Adds `AS` binary expression, to support *target* aliassing in `JOIN`\r\ncommands: `LEFT JOIN a AS b`\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"df37092b20b49b536fe541cc1dfcd294922ee7e7","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","release_note:skip","v9.0.0","backport:prev-minor","Feature:ES|QL","Team:ESQL","v8.18.0"],"title":"[ES|QL] `JOIN` command parser support","number":202749,"url":"https://github.com/elastic/kibana/pull/202749","mergeCommit":{"message":"[ES|QL] `JOIN` command parser support (#202749)\n\n## Summary\r\n\r\nPartially addresses https://github.com/elastic/kibana/issues/200858\r\n\r\n- Adds `JOIN` command support in Kibana ES|QL AST and parser.\r\n- Adds `commandType` to AST nodes, to support `<TYPE> JOIN ...` in join\r\ncommands.\r\n- Adds `AS` binary expression, to support *target* aliassing in `JOIN`\r\ncommands: `LEFT JOIN a AS b`\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"df37092b20b49b536fe541cc1dfcd294922ee7e7"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202749","number":202749,"mergeCommit":{"message":"[ES|QL] `JOIN` command parser support (#202749)\n\n## Summary\r\n\r\nPartially addresses https://github.com/elastic/kibana/issues/200858\r\n\r\n- Adds `JOIN` command support in Kibana ES|QL AST and parser.\r\n- Adds `commandType` to AST nodes, to support `<TYPE> JOIN ...` in join\r\ncommands.\r\n- Adds `AS` binary expression, to support *target* aliassing in `JOIN`\r\ncommands: `LEFT JOIN a AS b`\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"df37092b20b49b536fe541cc1dfcd294922ee7e7"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Vadim Kibana <[email protected]>
## Summary Partially addresses elastic#200858 - Adds `JOIN` command support in Kibana ES|QL AST and parser. - Adds `commandType` to AST nodes, to support `<TYPE> JOIN ...` in join commands. - Adds `AS` binary expression, to support *target* aliassing in `JOIN` commands: `LEFT JOIN a AS b` ### 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
## Summary Partially addresses elastic#200858 - Adds `JOIN` command support in Kibana ES|QL AST and parser. - Adds `commandType` to AST nodes, to support `<TYPE> JOIN ...` in join commands. - Adds `AS` binary expression, to support *target* aliassing in `JOIN` commands: `LEFT JOIN a AS b` ### 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
## Summary Partially addresses elastic#200858 - Adds `JOIN` command support in Kibana ES|QL AST and parser. - Adds `commandType` to AST nodes, to support `<TYPE> JOIN ...` in join commands. - Adds `AS` binary expression, to support *target* aliassing in `JOIN` commands: `LEFT JOIN a AS b` ### 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
## Summary Partially addresses elastic#200858 - Adds `JOIN` command support in Kibana ES|QL AST and parser. - Adds `commandType` to AST nodes, to support `<TYPE> JOIN ...` in join commands. - Adds `AS` binary expression, to support *target* aliassing in `JOIN` commands: `LEFT JOIN a AS b` ### 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
## Summary Partially addresses elastic#200858 - Adds `JOIN` command support in Kibana ES|QL AST and parser. - Adds `commandType` to AST nodes, to support `<TYPE> JOIN ...` in join commands. - Adds `AS` binary expression, to support *target* aliassing in `JOIN` commands: `LEFT JOIN a AS b` ### 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
Summary
Partially addresses #200858
JOIN
command support in Kibana ES|QL AST and parser.commandType
to AST nodes, to support<TYPE> JOIN ...
in join commands.AS
binary expression, to support target aliassing inJOIN
commands:LEFT JOIN a AS b
Checklist