-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
}
}
Tooa and pmorch
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