-
Notifications
You must be signed in to change notification settings - Fork 25.8k
date_histogram fails for year buckets >1, like "10y" #8939
Copy link
Copy link
Closed
Labels
:Analytics/AggregationsAggregationsAggregations>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)high hanging fruitstalled
Description
Attempting to do a date_histogram with 10-year sized buckets, passing "10y" to the interval setting results in this error:
ElasticsearchParseException[Failed to parse [10y]]; nested: NumberFormatException[For input string: \"10y\"];
As a workaround, I can specify large values for "weeks", so swapping in 520w (or 3650d) might be inaccurate, but possibly acceptable to some folks.
Sample agg (taken from Kibana 4) that causes the NumberFormatException:
"date_histogram": {
"field": "@timestamp",
"interval": "1y",
"min_doc_count": 1,
"extended_bounds": {
"min": -1767196800000,
"max": 1418425008298
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Analytics/AggregationsAggregationsAggregations>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)high hanging fruitstalled
Type
Fields
Give feedbackNo fields configured for issues without a type.