-
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
Incorrect sorting on numeric columns in Discover #69109
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
Issue still exists in Elasticsearch and Kibana 7.8.0 release. |
Hi @lo78cn, could you please go to "Inspect" in the menubar and provide the request that's send to Elasticsearch? Cheers, |
Hi @timroes, please find the request inspect files attached. time_asc.json.txt Looks like this is caused by "unmapped_type": "boolean". |
Thanks for the files. @lo78cn What seems to happen in your case is, that when you click on a new column to sort by , this column is added to the sort. so its
If you want just to sort by the new column, you have to deactivate sorting by it by clicking on the sort icon of it's column: |
Hi @kertal, thank you for your explanation. Now I know, why I did not notice this useful multisort feature. We have a field called msg.timestamp that is being used as the @timestamp field in the Kibana index pattern. In this case, the first field In the discover view automatically is called Time. After the initial sorting, no icons are visible. When I click on the secondary sort field msg.time. The sort icon is only visible on the msg.time field. The request inspect reveals that the query is sorted by both @timestamp and msg.time though. It only happens in existing discover views that have been created in 7.6.x. If I create a new discover view in 7.8.0, this default Time field does initially show the sort icon. I could add the field @timefield to see the initial sorting. I can't delete the default field Time. Having those two fields, next to each other, looks kind of strange. The real work-a-round here seems to be to recreate and replace my existing discover views. existing discover viewsnew discover view |
Kibana version: 7.7.0 and 7.7.1
Elasticsearch version: 7.7.0 and 7.7.1
Server OS version: Debian 10.4
Browser version:
Browser OS version: MacOS 10.15.5
Original install method (e.g. download page, yum, from source, etc.): apt packages
Describe the bug: When I click/sort on any numeric column, the order is not correct
Steps to reproduce:
(by default sorted on timestamp)
Expected behavior: correct numeric order
Screenshots (if relevant):
sorted on timestamp (default order)
time column ascending
time descending
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
Elasticsearch index mapping for this field:
"time": {
"type": "long"
}
Kibana index pattern field settings:
type: number
format: Number
The text was updated successfully, but these errors were encountered: