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

Rendering time series requires to to sort the results #1022

Open
nadav-dav opened this issue Sep 17, 2024 · 1 comment
Open

Rendering time series requires to to sort the results #1022

nadav-dav opened this issue Sep 17, 2024 · 1 comment
Labels
datasource/ADX type/bug Something isn't working

Comments

@nadav-dav
Copy link
Contributor

What happened:
When rendering the ADX results in a Time Series, you have to manually add | order by timestamp asc or the ADX won't render correctly

What you expected to happen:
If sorting is required, it can be done by the ADX plugin in client side.

How to reproduce it (as minimally and precisely as possible):

  1. Open Explore page
  2. Select ADX datasource
  3. Select "Format as: Time Series"
  4. Run a query like:
Table | where timstamp > ago(2d) | summerize count() by bin(timestamp, 1h), label
  1. You'll get an error: detected long formatted time series but failed to convert from long frame: long series must be sorted ascending by time to be converted. Returning table format instead.

Screenshots

Anything else we need to know?:

Environment:

  • Grafana version: 11.1.4
  • Plugin version: 5.0.6
  • OS Grafana is installed on: on-prem
  • User OS & Browser: Chrome
  • Others:
@nadav-dav nadav-dav added datasource/ADX type/bug Something isn't working labels Sep 17, 2024
@aangelisc
Copy link
Contributor

Thank you for opening this issue @nadav-dav, can confirm I've replicated this if there are more than two columns returned. We could look at ordering provided it doesn't have any unexpected side effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/ADX type/bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants