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

[Lens] Datatable without metric column shows no results #64416

Closed
mbondyra opened this issue Apr 24, 2020 · 6 comments
Closed

[Lens] Datatable without metric column shows no results #64416

mbondyra opened this issue Apr 24, 2020 · 6 comments
Labels
discuss Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@mbondyra
Copy link
Contributor

mbondyra commented Apr 24, 2020

Kibana version:
master

Describe the bug:
For lens data table visualization, when there are only bucketed columns defined, table shows no results:
image

Expected behavior:

  1. We could show error that it cannot be rendered and metric value is needed
    or
  2. We implicitly assume that 'count of records' is the value for buckets to refer to
@mbondyra mbondyra added bug Fixes for quality problems that affect the customer experience discuss Feature:Lens labels Apr 24, 2020
@mbondyra mbondyra changed the title [Lens] Datatable without metric column is not possible [Lens] Datatable without metric column shows no results Apr 24, 2020
@mbondyra
Copy link
Contributor Author

mbondyra commented May 5, 2020

Checking it now it works better by showing the error:
image

@wylieconlon wylieconlon added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label May 26, 2020
@elasticmachine
Copy link
Contributor

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

@wylieconlon
Copy link
Contributor

I think it makes sense to have an implicit "count" in the aggregation- I think this is something we can control inside our data source. It would also help solve a related issue, which is that the sort order of the Terms aggregation is set to "alphabetical" when there is no metric, even though that's not as useful as sorting Terms by Count.

Screenshot 2020-05-26 18 07 14

@flash1293
Copy link
Contributor

As this is a general thing, would it make sense to solve it in esaggs instead?

@wylieconlon
Copy link
Contributor

Opened a new issue for the fix on esaggs, but I think we may also want to work around this in the code that we control.

@flash1293 flash1293 removed the bug Fixes for quality problems that affect the customer experience label Aug 14, 2020
@flash1293
Copy link
Contributor

This is handled much better in the current version:
Screenshot 2021-06-14 at 15 42 13

Closing - if something thinks something else should be done about this, feel free to re-open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants