-
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] Distinguish among empty and available fields #174585
Conversation
I will continue working on it after the async search PR has been merged #174246 |
/ci |
/ci |
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.
LGTM 👍 Thanks!
src/plugins/data/server/search/strategies/esql_async_search/esql_async_search_strategy.ts
Outdated
Show resolved
Hide resolved
/ci |
/ci |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: cc @stratoula |
## Summary Follow up on #174585 Less code, less iterations. --------- Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co> Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com> Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
## Summary Follow up on elastic#174585 Less code, less iterations. --------- Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co> Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com> Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
## Summary Follow up on elastic#174585 Less code, less iterations. --------- Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co> Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com> Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
## Summary Follow up on elastic#174585 Less code, less iterations. --------- Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co> Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com> Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
- Followup for #174585 ## Summary This PR hides only `null`, `undefined` values and keeps `false`, `0`, `(empty)`. Before: <img width="500" alt="Screenshot 2024-03-14 at 10 07 13" src="https://github.com/elastic/kibana/assets/1415710/c5d49362-09e3-48f2-9ecc-247560950d68"> After: <img width="500" alt="Screenshot 2024-03-14 at 10 06 25" src="https://github.com/elastic/kibana/assets/1415710/3c1adcfd-bec9-4b4a-b94f-78b1d916e9dd">
- Followup for elastic#174585 ## Summary This PR hides only `null`, `undefined` values and keeps `false`, `0`, `(empty)`. Before: <img width="500" alt="Screenshot 2024-03-14 at 10 07 13" src="https://github.com/elastic/kibana/assets/1415710/c5d49362-09e3-48f2-9ecc-247560950d68"> After: <img width="500" alt="Screenshot 2024-03-14 at 10 06 25" src="https://github.com/elastic/kibana/assets/1415710/3c1adcfd-bec9-4b4a-b94f-78b1d916e9dd"> (cherry picked from commit 4ae02b0)
…) (#178815) # Backport This will backport the following commits from `main` to `8.13`: - [[ES|QL][Discover] Show all non-empty values in the grid (#178692)](#178692) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-03-15T12:14:17Z","message":"[ES|QL][Discover] Show all non-empty values in the grid (#178692)\n\n- Followup for https://github.com/elastic/kibana/pull/174585\r\n\r\n## Summary\r\n\r\nThis PR hides only `null`, `undefined` values and keeps `false`, `0`,\r\n`(empty)`.\r\n\r\nBefore:\r\n<img width=\"500\" alt=\"Screenshot 2024-03-14 at 10 07 13\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/c5d49362-09e3-48f2-9ecc-247560950d68\">\r\n\r\nAfter:\r\n<img width=\"500\" alt=\"Screenshot 2024-03-14 at 10 06 25\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/3c1adcfd-bec9-4b4a-b94f-78b1d916e9dd\">","sha":"4ae02b02b918f42244d35482b51b506d18ac8e18","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:DataDiscovery","backport:prev-minor","Feature:ES|QL","v8.14.0"],"title":"[ES|QL][Discover] Show all non-empty values in the grid","number":178692,"url":"https://github.com/elastic/kibana/pull/178692","mergeCommit":{"message":"[ES|QL][Discover] Show all non-empty values in the grid (#178692)\n\n- Followup for https://github.com/elastic/kibana/pull/174585\r\n\r\n## Summary\r\n\r\nThis PR hides only `null`, `undefined` values and keeps `false`, `0`,\r\n`(empty)`.\r\n\r\nBefore:\r\n<img width=\"500\" alt=\"Screenshot 2024-03-14 at 10 07 13\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/c5d49362-09e3-48f2-9ecc-247560950d68\">\r\n\r\nAfter:\r\n<img width=\"500\" alt=\"Screenshot 2024-03-14 at 10 06 25\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/3c1adcfd-bec9-4b4a-b94f-78b1d916e9dd\">","sha":"4ae02b02b918f42244d35482b51b506d18ac8e18"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178692","number":178692,"mergeCommit":{"message":"[ES|QL][Discover] Show all non-empty values in the grid (#178692)\n\n- Followup for https://github.com/elastic/kibana/pull/174585\r\n\r\n## Summary\r\n\r\nThis PR hides only `null`, `undefined` values and keeps `false`, `0`,\r\n`(empty)`.\r\n\r\nBefore:\r\n<img width=\"500\" alt=\"Screenshot 2024-03-14 at 10 07 13\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/c5d49362-09e3-48f2-9ecc-247560950d68\">\r\n\r\nAfter:\r\n<img width=\"500\" alt=\"Screenshot 2024-03-14 at 10 06 25\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/3c1adcfd-bec9-4b4a-b94f-78b1d916e9dd\">","sha":"4ae02b02b918f42244d35482b51b506d18ac8e18"}}]}] BACKPORT--> Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
Summary
Closes #174587
Implements available, empty fields separation in Discover ES|QL mode
The ES team added a query parameter ?drop_null_columns. This changes slightly the response:
This PR is using this new query parameter in Discover to make the distinction among available and empty fields. This is very important in case of indices with many empty columns (for example ECS)
Checklist