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

[Discover] Invalid sorting by a scripted field of type string #73928

Closed
kertal opened this issue Jul 31, 2020 · 5 comments
Closed

[Discover] Invalid sorting by a scripted field of type string #73928

kertal opened this issue Jul 31, 2020 · 5 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application regression Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@kertal
Copy link
Member

kertal commented Jul 31, 2020

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:

  1. Install kibana_sample_data_flights and convert it's scripted field hour_of_day to type String
  2. Goto Discover, add hour_of_day to table
  3. Sort by hour_of_day - doesn't work

Expected behavior:
It should sort correctly

Screenshots (if relevant):
7.7: incorrect behavior
image
7.5: works
image

Screens by Edmar Moretti, who reported this behavior, thx!

@kertal kertal added bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application regression Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jul 31, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@MidnightNinja83
Copy link

This issue came up on our QA process and required us to investigate this issue in depth. It appears that this issue is not present in 7.5.2 and was introduced in 7.6.0 and is still present in 7.8.1.

@Malivil
Copy link

Malivil commented Aug 17, 2020

This behavior (and error) also occurs in visualizations on dashboards. It then breaks dashboard refreshes until the sort is removed because it continues to try to use the invalid sort field type.

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@timroes
Copy link
Contributor

timroes commented Sep 10, 2020

Closed via #72681

@timroes timroes closed this as completed Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application regression Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants