tantivy icon indicating copy to clipboard operation
tantivy copied to clipboard

date histogram limitations

Open PSeitz opened this issue 2 years ago • 2 comments

Date histogram aggregation has been added in https://github.com/quickwit-oss/tantivy/pull/1900 with some limitations:

only fixed_interval is supported, calendar-aware features like calendar_interval are not supported
format is unsupported. Fixed to Rfc3339 currently.
bounds are not yet supported to be provided via String, e.g. "2015-01-01T00:00:00Z"

Calendar-aware intervals

Calendar-aware intervals understand that daylight savings changes the length of specific days, months have different amounts of days, and leap seconds can be tacked onto a particular year.

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html

PSeitz avatar Mar 21 '23 13:03 PSeitz

calendar_interval are required for opendashboard, so raising the priority.

Obviously we want the fixed interval optimization whenever possible (1w, 1d, etc.) and I think we can ignore leap seconds for the moment.

fulmicoton avatar Jul 15 '24 09:07 fulmicoton

https://github.com/quickwit-oss/tantivy/issues/2459

PSeitz avatar Jul 26 '24 10:07 PSeitz