[Lens] Count Function Doesn't Support the Histogram Field Type Although ES Does #191950
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
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 aField <field_name> is of the wrong type
warning when trying to use it on a histogram field.Steps to reproduce:
Or
count()
formula on a histogram fieldExpected behavior:
Since Kibana supports the
values_count
aggregation under thecount()
formula and Elasticsearch supports histogram fields in thevalues_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.
The text was updated successfully, but these errors were encountered: