elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
876 stars 24.81k forks source link

ES|QL: not so user friendly error message for mv_min and mv_max #112006

Open astefan opened 2 months ago

astefan commented 2 months ago

Description

For unsupported data types (I tested these with a counter data type) these two functions generate an error message like argument of [mv_min(k8s.pod.network.tx)] must be [representableNonSpatial], found value [k8s.pod.network.tx] type [counter_long]. As a user, I am confused as to what representableNonSpatial means. And the documentation doesn't help me either. Nowhere I could find what representable means for ES|QL.

Other mv_ functions returns a more user friednly error message, but I am still confused as to what "representable" means for me, as an user. argument of [mv_count(k8s.pod.network.tx)] must be [representable], found value [k8s.pod.network.tx] type [counter_long]"

elasticsearchmachine commented 2 months ago

Pinging @elastic/es-docs (Team:Docs)

elasticsearchmachine commented 2 months ago

Pinging @elastic/es-analytical-engine (Team:Analytics)