Regression on AggregationRange
- incorrect types for from
and to
fields
#2641
Labels
AggregationRange
- incorrect types for from
and to
fields
#2641
🐛 Wrong type
AggregationRange.from
andAggregationRange.to
were changed fromstring | number
tonumber
in #2552From the PR:
This was supposed to be done to address elastic/elasticsearch-java#666, but the assumption that was used for the PR is wrong, For
RangeAggrations
at least,from
andto
do supportstring
type value, for patterns such asnow
ornow+X
.E.g from the Kibana repo:
https://github.com/elastic/kibana/blob/1c1e20afdb883fc279c5a06d4b71f8e577f8dad6/x-pack/plugins/task_manager/server/monitoring/workload_statistics.ts#L169-L180
The text was updated successfully, but these errors were encountered: