-
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] Add pretty-printing support for list literals #195383
Conversation
Pinging @elastic/kibana-esql (Team:ESQL) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Page load bundle
History
|
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.
Very nice Vadim
Starting backport for target branches: 8.x |
## Summary Closes elastic#194840 This PR add pretty-printing support for list literal expressions. For example, this query: ``` ROW ["..............................................", "..............................................", ".............................................."] ``` will be formatted as so: ``` ROW [ "..............................................", "..............................................", ".............................................."] ``` ### Checklist Delete any items that are not applicable to this PR. - [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 ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) Co-authored-by: Stratoula Kalafateli <[email protected]> (cherry picked from commit 4df2d9f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…#195822) # Backport This will backport the following commits from `main` to `8.x`: - [[ES|QL] Add pretty-printing support for list literals (#195383)](#195383) <!--- 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-10-10T20:22:23Z","message":"[ES|QL] Add pretty-printing support for list literals (#195383)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/194840\r\n\r\nThis PR add pretty-printing support for list literal expressions. For\r\nexample, this query:\r\n\r\n```\r\nROW [\"..............................................\", \"..............................................\", \"..............................................\"]\r\n```\r\n\r\nwill be formatted as so:\r\n\r\n```\r\nROW\r\n [\r\n \"..............................................\",\r\n \"..............................................\",\r\n \"..............................................\"]\r\n```\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\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\r\n### For maintainers\r\n\r\n- [x] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\nCo-authored-by: Stratoula Kalafateli <[email protected]>","sha":"4df2d9f068445d3606a0cea58be6c32e00721d3f","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.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.16.0"],"title":"[ES|QL] Add pretty-printing support for list literals","number":195383,"url":"https://github.com/elastic/kibana/pull/195383","mergeCommit":{"message":"[ES|QL] Add pretty-printing support for list literals (#195383)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/194840\r\n\r\nThis PR add pretty-printing support for list literal expressions. For\r\nexample, this query:\r\n\r\n```\r\nROW [\"..............................................\", \"..............................................\", \"..............................................\"]\r\n```\r\n\r\nwill be formatted as so:\r\n\r\n```\r\nROW\r\n [\r\n \"..............................................\",\r\n \"..............................................\",\r\n \"..............................................\"]\r\n```\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\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\r\n### For maintainers\r\n\r\n- [x] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\nCo-authored-by: Stratoula Kalafateli <[email protected]>","sha":"4df2d9f068445d3606a0cea58be6c32e00721d3f"}},"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/195383","number":195383,"mergeCommit":{"message":"[ES|QL] Add pretty-printing support for list literals (#195383)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/194840\r\n\r\nThis PR add pretty-printing support for list literal expressions. For\r\nexample, this query:\r\n\r\n```\r\nROW [\"..............................................\", \"..............................................\", \"..............................................\"]\r\n```\r\n\r\nwill be formatted as so:\r\n\r\n```\r\nROW\r\n [\r\n \"..............................................\",\r\n \"..............................................\",\r\n \"..............................................\"]\r\n```\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\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\r\n### For maintainers\r\n\r\n- [x] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\nCo-authored-by: Stratoula Kalafateli <[email protected]>","sha":"4df2d9f068445d3606a0cea58be6c32e00721d3f"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Vadim Kibana <[email protected]>
Summary
Closes #194840
This PR add pretty-printing support for list literal expressions. For example, this query:
will be formatted as so:
Checklist
Delete any items that are not applicable to this PR.
For maintainers