[Lens] Runtime fields returning array returns a Request error when using last_value operation #148613
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Lens
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Projects
Describe the bug:
When using a runtime field returning an array value (emitting multiple times) the
last_value
operation uses thetop_metric
operation rather thantop_hits
under the hood: this leads to an error on the workspace:Prior to 8.2
last_value
was usingtop_hits
who supported runtime fields array values, then #127151 changed the logic of it.In 8.1 a table with a
last_value
metric of a runtime array field would produce this:Steps to reproduce:
runtime_array
with the following content to the dataView:last value
metric for theruntime array
fieldExpected behavior:
It should work as in 8.1 using
top_hits
.The text was updated successfully, but these errors were encountered: