We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TimescaleDB has the time_bucket field to take full advantage of their hypertables: https://docs.timescale.com/api/latest/hyperfunctions/time_bucket/
time_bucket
This could be supported with:
class TimeBucketField(MultiField): def __init__(self, bucket_seconds=60.0, *args, **kwargs): super().__init__(*args, **kwargs) self.bucket_seconds = float(bucket_seconds) self.auto_alias = f"{self.field.name}_bucket" def get_select_sql(self): return f"""time_bucket('{self.bucket_seconds:.3f}s',"{self.field.name}")"""
Would this be in the scope of the project?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TimescaleDB has the
time_bucket
field to take full advantage of their hypertables: https://docs.timescale.com/api/latest/hyperfunctions/time_bucket/This could be supported with:
Would this be in the scope of the project?
The text was updated successfully, but these errors were encountered: