elastic / elasticsearch

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

[ES|QL] provide nullish Kibana function definitions #109257

Open drewdaemon opened 3 months ago

drewdaemon commented 3 months ago

Description

In https://github.com/elastic/elasticsearch/pull/106782, the Elasticsearch team started providing function definitions to Kibana, including call signatures.

Many (most?) ES|QL functions accept NULL values as arguments. In some (most?) cases, passing a NULL arg results in a NULL return value.

E.g. TO_STRING(NULL) -> NULL

Right now, these "nullish" call signatures aren't included in the function definitions. Could we add them?

elasticsearchmachine commented 3 months ago

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

elasticsearchmachine commented 3 months ago

Pinging @elastic/kibana-esql (ES|QL-ui)

drewdaemon commented 3 months ago

(This is lower priority than https://github.com/elastic/elasticsearch/issues/107219 and https://github.com/elastic/elasticsearch/issues/107220)