Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time_bucket_gapfill does not support running without datapoints param. #35

Open
dreaquil opened this issue Mar 14, 2022 · 1 comment
Open

Comments

@dreaquil
Copy link
Contributor

Hi!

I'm trying to run a query with time_bucket_gapfill as follows:

MyModel.timescale.filter(time__range=ranges).time_bucket_gapfill('time', '1 day', start=ranges[0], end=ranges[1]).annotate(Count('temperature'))

However, since datapoints defaults to 240, it's not possible to pass None to the interval.

@dreaquil
Copy link
Contributor Author

Opened a pull request #36. However, it seems to me that datapoints is not working properly. The behaviour intended by the timescaledb documentation does not match the one used here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant