elastic / kibana

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

[Lens][ES|QL] New chart is suggested only for queries with result data #200039

Open dej611 opened 1 week ago

dej611 commented 1 week ago

Describe the bug:

When transitioning from an ES|QL query to another, if the landing one provides an empty table as result, then the current visualization configuration is cleaned up and the "ideal" suggestion candidate is not taking over the old visualization.

Image

Not sure if anything can be suggested here without any data, but the current behaviour is confusing (as it also allows for saving the invalid chart config with no dimensions).

elasticmachine commented 1 week ago

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

elasticmachine commented 1 week ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)