TSVB wrong default date field on default index-pattern #36264
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:TSVB
TSVB (Time Series Visual Builder)
regression
Kibana version:
master
Describe the bug:
When creating a fresh TSVB visualization, the default index pattern is used.
The first data query is then issued with that default index-pattern against what should be the default
date
field. I said "should be" because if I'm not currently seeing this behaviour if I'm using thekibana_sample_data_ecommerce
that has theorder_date
as default date field instead of the standard@timestamp
.Steps to reproduce:
kibana_sample_data_ecommerce
as default index patternapi/metrics/data
API call via devtools, thepanel
object is issuing a that call with the@timestamp
wrong date field.The request for this panel failed
api/metrics/data
call, thetime_field
value isnull
and ES is complaining about[date_histogram] field doesn't support values of type: VALUE_NULL
Expected behavior:
The default index pattern should use the default time field specified on that patter (that is correctly picked up by the
api/metrics/field
call but not used on the/data
call.Screenshots (if relevant):

Any additional context:
First request with wrong time_field:
subsequent wrong call with null field
cc @elastic/kibana-tsvb-external
The text was updated successfully, but these errors were encountered: