SQL: Add support for histogram field #74658
Labels
:Analytics/SQL
SQL querying
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Following #63289 it would be nice to also support this field type in SQL.
Currently if such a field is present in an index,
SELECT * FROM my-index
just skips the field.Using the example of https://www.elastic.co/guide/en/elasticsearch/reference/master/histogram.html#histogram-ex,
SELECT * FROM "my-index-000001"
returns:Where as
SELECT my_histogram from "my-index-000001"
throws an exception as expected:returns:
min
,max
, etc. and can also by used in composite aggs which are used under the hood for SQL GROUP BY queries:returns:
SELECT my_histogram FROM ...
orSELECT * FROM ...
then special care should be taken for the (also for JDBC/ODBC) as the search results look like this:The text was updated successfully, but these errors were encountered: