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]: CAGG chunk interval resolves to source_table interval multiplied by 10 #5382
Labels
Comments
Hello @noctarius, Thank you for the detailed steps to reproduce the problem. I could see the same behavior in TimescaleDB 2.10.0 and PostgreSQL 14. The
|
fabriziomello
added a commit
to fabriziomello/timescaledb
that referenced
this issue
Mar 2, 2023
When a Continuous Aggregate is created the `chunk_interval_size` is defined my the `chunk_interval_size` of the original hypertable multiplied by a fixed factor of 10. The problem is currently when we create a Hierarchical Continuous Aggregate the same factor is applied and it lead to an exponential `chunk_interval_size`. Fixed it by just copying the `chunk_interval_size` from the base Continuous Aggregate for an Hierachical Continuous Aggreagate. Fixes timescale#5382
fabriziomello
added a commit
to fabriziomello/timescaledb
that referenced
this issue
Mar 2, 2023
When a Continuous Aggregate is created the `chunk_interval_size` is defined my the `chunk_interval_size` of the original hypertable multiplied by a fixed factor of 10. The problem is currently when we create a Hierarchical Continuous Aggregate the same factor is applied and it lead to an exponential `chunk_interval_size`. Fixed it by just copying the `chunk_interval_size` from the base Continuous Aggregate for an Hierachical Continuous Aggreagate. Fixes timescale#5382
fabriziomello
added a commit
to fabriziomello/timescaledb
that referenced
this issue
Mar 3, 2023
When a Continuous Aggregate is created the `chunk_interval_size` is defined my the `chunk_interval_size` of the original hypertable multiplied by a fixed factor of 10. The problem is currently when we create a Hierarchical Continuous Aggregate the same factor is applied and it lead to an exponential `chunk_interval_size`. Fixed it by just copying the `chunk_interval_size` from the base Continuous Aggregate for an Hierachical Continuous Aggreagate. Fixes timescale#5382
fabriziomello
added a commit
to fabriziomello/timescaledb
that referenced
this issue
Mar 3, 2023
When a Continuous Aggregate is created the `chunk_interval_size` is defined my the `chunk_interval_size` of the original hypertable multiplied by a fixed factor of 10. The problem is currently when we create a Hierarchical Continuous Aggregate the same factor is applied and it lead to an exponential `chunk_interval_size`. Fixed it by just copying the `chunk_interval_size` from the base Continuous Aggregate for an Hierachical Continuous Aggreagate. Fixes timescale#5382
fabriziomello
added a commit
to fabriziomello/timescaledb
that referenced
this issue
Mar 3, 2023
When a Continuous Aggregate is created the `chunk_interval_size` is defined my the `chunk_interval_size` of the original hypertable multiplied by a fixed factor of 10. The problem is currently when we create a Hierarchical Continuous Aggregate the same factor is applied and it lead to an exponential `chunk_interval_size`. Fixed it by just copying the `chunk_interval_size` from the base Continuous Aggregate for an Hierachical Continuous Aggreagate. Fixes timescale#5382
fabriziomello
added a commit
to fabriziomello/timescaledb
that referenced
this issue
Mar 3, 2023
When a Continuous Aggregate is created the `chunk_interval_size` is defined my the `chunk_interval_size` of the original hypertable multiplied by a fixed factor of 10. The problem is currently when we create a Hierarchical Continuous Aggregate the same factor is applied and it lead to an exponential `chunk_interval_size`. Fixed it by just copying the `chunk_interval_size` from the base Continuous Aggregate for an Hierachical Continuous Aggreagate. Fixes timescale#5382
fabriziomello
added a commit
that referenced
this issue
Mar 3, 2023
When a Continuous Aggregate is created the `chunk_interval_size` is defined my the `chunk_interval_size` of the original hypertable multiplied by a fixed factor of 10. The problem is currently when we create a Hierarchical Continuous Aggregate the same factor is applied and it lead to an exponential `chunk_interval_size`. Fixed it by just copying the `chunk_interval_size` from the base Continuous Aggregate for an Hierachical Continuous Aggreagate. Fixes #5382
github-actions bot
pushed a commit
that referenced
this issue
Mar 3, 2023
When a Continuous Aggregate is created the `chunk_interval_size` is defined my the `chunk_interval_size` of the original hypertable multiplied by a fixed factor of 10. The problem is currently when we create a Hierarchical Continuous Aggregate the same factor is applied and it lead to an exponential `chunk_interval_size`. Fixed it by just copying the `chunk_interval_size` from the base Continuous Aggregate for an Hierachical Continuous Aggreagate. Fixes #5382 (cherry picked from commit 3204683)
timescale-automation
pushed a commit
that referenced
this issue
Mar 4, 2023
When a Continuous Aggregate is created the `chunk_interval_size` is defined my the `chunk_interval_size` of the original hypertable multiplied by a fixed factor of 10. The problem is currently when we create a Hierarchical Continuous Aggregate the same factor is applied and it lead to an exponential `chunk_interval_size`. Fixed it by just copying the `chunk_interval_size` from the base Continuous Aggregate for an Hierachical Continuous Aggreagate. Fixes #5382 (cherry picked from commit 3204683)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What type of bug is this?
Performance issue, Unexpected error
What subsystems and features are affected?
Continuous aggregate
What happened?
When creating an continuous aggregate, the chunk interval taken for it is the chunk interval of the source table multiplied by 10, which increases way to fast. That is true for cagg on hypertable and cagg on cagg.
Example:
raw hypertable chunk interval: 7 days
cagg on hypertable: 70 days
cagg on cagg: 700 days
TimescaleDB version affected
2.9.3
PostgreSQL version used
14.7
What operating system did you use?
Cloud
What installation method did you use?
Not applicable
What platform did you run on?
Timescale Cloud
Relevant log output and stack trace
The text was updated successfully, but these errors were encountered: