Skip to content
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] Omits sorting non sortable fields on Discover histogram #195531

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Oct 9, 2024

Summary

Closes #195510

Sorting by geo_point, tsdb counter fields and _source is not supported in ES|QL. This PR is omitting the sorting for these types and now the breakdown works fine.

image

Note: This behavior is unreleased.

Checklist

@stratoula stratoula changed the title [ES|QL]Not allow sorting by geo_point on Discover histogram [ES|QL] Omits sorting by geo_point on Discover histogram Oct 9, 2024
@stratoula stratoula changed the title [ES|QL] Omits sorting by geo_point on Discover histogram [ES|QL] Omits sorting non sortable fields on Discover histogram Oct 10, 2024
@stratoula stratoula added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.16.0 Feature:Discover Discover Application Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. labels Oct 10, 2024
@stratoula stratoula marked this pull request as ready for review October 10, 2024 09:49
@stratoula stratoula requested review from a team as code owners October 10, 2024 09:49
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

Copy link
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@stratoula
Copy link
Contributor Author

/ci

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
aiops 611 612 +1
apm 1843 1844 +1
cloudSecurityPosture 653 654 +1
dashboard 664 665 +1
data 514 515 +1
dataVisualizer 726 727 +1
discover 992 993 +1
esql 90 91 +1
esqlDataGrid 363 364 +1
eventAnnotationListing 578 579 +1
infra 1504 1505 +1
investigateApp 578 579 +1
lens 1461 1462 +1
lists 340 341 +1
logsExplorer 562 563 +1
maps 1240 1241 +1
ml 2033 2034 +1
observability 1060 1061 +1
observabilityAIAssistantApp 247 248 +1
securitySolution 5926 5927 +1
slo 847 848 +1
stackAlerts 161 162 +1
transform 498 499 +1
unifiedHistogram 185 186 +1
unifiedSearch 347 348 +1
total +25

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
unifiedHistogram 69.4KB 69.7KB +342.0B
Unknown metric groups

API count

id before after diff
@kbn/esql-utils 75 77 +2

History

Copy link
Contributor

@drewdaemon drewdaemon left a comment

Choose a reason for hiding this comment

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

Code review looks good

@stratoula stratoula merged commit 2bb9c3c into elastic:main Oct 10, 2024
20 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11278793906

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 10, 2024
…tic#195531)

## Summary

Closes elastic#195510

Sorting by `geo_point`, tsdb counter fields and _source is not supported
in ES|QL. This PR is omitting the sorting for these types and now the
breakdown works fine.

<img width="2500" alt="image"
src="https://github.com/user-attachments/assets/1526f516-5f8d-491d-8b77-1f9734ce83a4">

Note: This behavior is unreleased.

### 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 2bb9c3c)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 10, 2024
…#195531) (#195809)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL] Omits sorting non sortable fields on Discover histogram
(#195531)](#195531)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-10T17:12:29Z","message":"[ES|QL]
Omits sorting non sortable fields on Discover histogram (#195531)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/195510\r\n\r\nSorting by
`geo_point`, tsdb counter fields and _source is not supported\r\nin
ES|QL. This PR is omitting the sorting for these types and now
the\r\nbreakdown works fine.\r\n\r\n<img width=\"2500\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/1526f516-5f8d-491d-8b77-1f9734ce83a4\">\r\n\r\n\r\nNote:
This behavior is unreleased.\r\n\r\n### Checklist\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":"2bb9c3cc92957faea5985169371e75197f86e407","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor","v8.16.0"],"title":"[ES|QL]
Omits sorting non sortable fields on Discover
histogram","number":195531,"url":"https://github.com/elastic/kibana/pull/195531","mergeCommit":{"message":"[ES|QL]
Omits sorting non sortable fields on Discover histogram (#195531)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/195510\r\n\r\nSorting by
`geo_point`, tsdb counter fields and _source is not supported\r\nin
ES|QL. This PR is omitting the sorting for these types and now
the\r\nbreakdown works fine.\r\n\r\n<img width=\"2500\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/1526f516-5f8d-491d-8b77-1f9734ce83a4\">\r\n\r\n\r\nNote:
This behavior is unreleased.\r\n\r\n### Checklist\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":"2bb9c3cc92957faea5985169371e75197f86e407"}},"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/195531","number":195531,"mergeCommit":{"message":"[ES|QL]
Omits sorting non sortable fields on Discover histogram (#195531)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/195510\r\n\r\nSorting by
`geo_point`, tsdb counter fields and _source is not supported\r\nin
ES|QL. This PR is omitting the sorting for these types and now
the\r\nbreakdown works fine.\r\n\r\n<img width=\"2500\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/1526f516-5f8d-491d-8b77-1f9734ce83a4\">\r\n\r\n\r\nNote:
This behavior is unreleased.\r\n\r\n### Checklist\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":"2bb9c3cc92957faea5985169371e75197f86e407"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Stratoula Kalafateli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ESQL] Breakdown by geo.coordinates displays elasticsearch error about cannot sort on geo_point
5 participants