elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.61k stars 8.22k forks source link

ES|QL] Client side validation bugs #192255

Open stratoula opened 2 months ago

stratoula commented 2 months ago

Describe the bug:

Here we are gathering bugs related to the client side validation of ES|QL. This means things that we are marking as errors when they are not

Image

Image

FROM kibana_sample_data_logs | KEEP `geo`.`dest`
elasticmachine commented 2 months ago

Pinging @elastic/kibana-esql (Team:ESQL)

stratoula commented 1 month ago

A regression here when casting

Image

drewdaemon commented 1 month ago

FROM kibana_sample_data_logs | EVAL TRIM(agent.keyword) | EVAL TRIM(TRIM(agent.keyword)) creates an error Argument of [trim] must be [keyword], found value [TRIM(agent.keyword)] type [double]. This is because we are blindly assuming that any bare function variable is of type double. Similarly, we are making other mistakes in detecting the types of variables such as blindly choosing the return type of the first signature of the function in an assignment.

Image