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] Count Function Doesn't Support the Histogram Field Type Although ES Does #191950

Open
psypuff opened this issue Sep 3, 2024 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@psypuff
Copy link

psypuff commented Sep 3, 2024

Kibana version:
8.15.0

Elasticsearch version:
8.15.0

Server OS version:
Amazon Linux 2.0.20240816.0

Browser version:
Chrome 128.0.6613.84 (Official Build) (arm64)

Browser OS version:
MacOS 14.5

Original install method (e.g. download page, yum, from source, etc.):
ECK 2.14

Describe the bug:
While plotting a histogram field using Lens, the Count function reverts to count records and the field becomes greyed-out. Also, the count() formula spits a Field <field_name> is of the wrong type warning when trying to use it on a histogram field.

Steps to reproduce:

  1. Create a new Lens visualization
  2. Drag and drop a histogram field onto the graph
  3. Change the function to Count

Or

  1. Create a new Lens visualization
  2. Add a vertical axis item
  3. Switch to formula
  4. Use the count() formula on a histogram field

Expected behavior:
Since Kibana supports the values_count aggregation under the count() formula and Elasticsearch supports histogram fields in the values_count aggregation for a few years now - Kibana is also expected to support counting histogram fields using Lens.

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:
It seems the histogram is just missing from this list but I'm not familiar with the code and there might be more to it.

@psypuff psypuff added the bug Fixes for quality problems that affect the customer experience label Sep 3, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Sep 3, 2024
@dej611 dej611 added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 3, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Sep 3, 2024
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 Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

3 participants