-
Notifications
You must be signed in to change notification settings - Fork 916
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
[Bug]: incorrect interval_length
value in _timescaledb_catalog.dimension
#7792
Comments
Unfortunately, time bucket interval used for caggs currently has nothing to do with chunk interval on underlying hypertables. They are calculated based on the raw data hypertable they reference (I think 10x the size of that hypertable). |
and how to get the interval size from tables with metainformation (like _timescaledb_catalog.dimension) for cagss ? |
Not sure what you are asking, you already showed it in your initial post:
|
but it doesn't work as you say for CAGGS... |
Caggs have an undelying materialized hypertable (id 88 in your example). You can inspect that just like a regular hypertable. |
I did just that. |
I do apologize, I misunderstood what you are looking for. You are talking about the interval you have set in your aggregation, namely time bucket. I'm not aware of that being stored anywhere in our catalog tables except directly in the cagg view definition. |
What type of bug is this?
Other
What subsystems and features are affected?
Other
What happened?
I have cagg 'caggTestMonth' with this time_bucket:
=> find hypertable_id for this cagg:
=> find dimension for this hypertable_id 88 and 87
why is the 'interval_length' in both hypertable set to 864000000000 ?
this behavior for all intervals that I tested (1 hour, 1 year, 1 month, 1 day)
TimescaleDB version affected
2.17.1
PostgreSQL version used
16.4
What operating system did you use?
Ubuntu 24.04.1 LTS
What installation method did you use?
Docker
What platform did you run on?
On prem/Self-hosted
Relevant log output and stack trace
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: