[Discover] Invalid sorting by a scripted field of type string #73928
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Discover
Discover Application
regression
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version:
master, 7.x, user reported it started failing 7.7
Describe the bug:
Using a scripted field to sort by doesn't work when the type of the field is string, the request to Elasticsearch contains the type
number
Reported first:
https://discuss.elastic.co/t/discover-ordering-in-text-columns-does-not-work/242073
Steps to reproduce:
hour_of_day
to typeString
hour_of_day
to tablehour_of_day
- doesn't workExpected behavior:
It should sort correctly
Screenshots (if relevant):
7.7: incorrect behavior
7.5: works
Screens by Edmar Moretti, who reported this behavior, thx!
The text was updated successfully, but these errors were encountered: