jamessewell / django-timescaledb

A Django database backend and tooling for Timescaledb.
Apache License 2.0
185 stars 47 forks source link

FR: Support for time_bucket_ng #29

Closed shypard closed 2 years ago

shypard commented 2 years ago

Hi!

With timescaledb 2.4 a new (experimental) feature was introduced, improving the exiting time_bucket functionality: time_bucket_ng [1]. Using that function it is now possible to create timebuckets with intervals such as months and years, as well as to set a custom timezone.

Would it be possible to support this new function?

[1] https://docs.timescale.com/api/latest/hyperfunctions/time_bucket_ng/#timescaledb-experimental-time-bucket-ng