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
Fix year not multiple of day/month in Hierarchical CAggs #5255
Conversation
de154a8
to
6a38429
Compare
Codecov Report
@@ Coverage Diff @@
## main #5255 +/- ##
=======================================
Coverage 89.00% 89.00%
=======================================
Files 225 225
Lines 51838 51842 +4
=======================================
+ Hits 46138 46144 +6
+ Misses 5700 5698 -2
Continue to review full report at Codecov.
|
eb58ef0
to
42cc548
Compare
@RafiaSabih, @fabriziomello: please review this pull request.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also add those new tests to cagg_on_cagg_dist_ht.sql
02efd48
to
b7c065b
Compare
Added the tests to |
b7c065b
to
558b6c7
Compare
Previously all intervals were converted to seconds using "epoch" with date_part. However, this treats a year as 365.25 days to account for leap years, leading to the unexpected situation that a year is not a multiple of a day or a month. Fixed by treating month-only intervals as multiples of 30 days. Fixes timescale#5231
558b6c7
to
5b60343
Compare
Automated backport to 2.9.x not done: cherry-pick failed. Git status
|
Automated backport to 2.9.x not done: cherry-pick failed. Git status
|
This release contains bug fixes since the 2.9.2 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#4804 Skip bucketing when start or end of refresh job is null * timescale#5108 Fix column ordering in compressed table index * timescale#5187 Don't enable clang-tidy by default * timescale#5255 Fix year not multiple of day/month in nested CAgg * timescale#5259 Lock down search_path in SPI calls
This release contains bug fixes since the 2.9.2 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#4804 Skip bucketing when start or end of refresh job is null * timescale#5108 Fix column ordering in compressed table index * timescale#5187 Don't enable clang-tidy by default * timescale#5255 Fix year not multiple of day/month in nested CAgg * timescale#5259 Lock down search_path in SPI calls
This release contains a critical securtiy fix(timescale#5259) and other bug fixes since the 2.9.2 release. This release is high priority for upgrade. We strongly recommend that you upgrade as soon as possible. **Bugfixes** * timescale#4804 Skip bucketing when start or end of refresh job is null * timescale#5108 Fix column ordering in compressed table index * timescale#5187 Don't enable clang-tidy by default * timescale#5255 Fix year not multiple of day/month in nested CAgg * timescale#5259 Lock down search_path in SPI calls
This release contains a critical securtiy fix(timescale#5259) and other bug fixes since the 2.9.2 release. This release is high priority for upgrade. We strongly recommend that you upgrade as soon as possible. **Bugfixes** * timescale#4804 Skip bucketing when start or end of refresh job is null * timescale#5108 Fix column ordering in compressed table index * timescale#5187 Don't enable clang-tidy by default * timescale#5255 Fix year not multiple of day/month in nested CAgg * timescale#5259 Lock down search_path in SPI calls
This release contains a critical securtiy fix(timescale#5259) and other bug fixes since the 2.9.2 release. This release is high priority for upgrade. We strongly recommend that you upgrade as soon as possible. **Bugfixes** * timescale#4804 Skip bucketing when start or end of refresh job is null * timescale#5108 Fix column ordering in compressed table index * timescale#5187 Don't enable clang-tidy by default * timescale#5255 Fix year not multiple of day/month in nested CAgg * timescale#5259 Lock down search_path in SPI calls
This release contains bug fixes since the 2.9.2 release. This release is high priority for upgrade. We strongly recommend that you upgrade as soon as possible. **Bugfixes** * timescale#4804 Skip bucketing when start or end of refresh job is null * timescale#5108 Fix column ordering in compressed table index not following the order of a multi-column segment by definition * timescale#5187 Don't enable clang-tidy by default * timescale#5255 Fix year not being considered as a multiple of day/month in hierarchical continuous aggregates * timescale#5259 Lock down search_path in SPI calls
This release contains bug fixes since the 2.9.2 release. This release is high priority for upgrade. We strongly recommend that you upgrade as soon as possible. **Bugfixes** * #4804 Skip bucketing when start or end of refresh job is null * #5108 Fix column ordering in compressed table index not following the order of a multi-column segment by definition * #5187 Don't enable clang-tidy by default * #5255 Fix year not being considered as a multiple of day/month in hierarchical continuous aggregates * #5259 Lock down search_path in SPI calls
This release contains bug fixes since the 2.9.2 release. This release is high priority for upgrade. We strongly recommend that you upgrade as soon as possible. **Bugfixes** * timescale#4804 Skip bucketing when start or end of refresh job is null * timescale#5108 Fix column ordering in compressed table index not following the order of a multi-column segment by definition * timescale#5187 Don't enable clang-tidy by default * timescale#5255 Fix year not being considered as a multiple of day/month in hierarchical continuous aggregates * timescale#5259 Lock down search_path in SPI calls
This release contains bug fixes since the 2.9.2 release. This release is high priority for upgrade. We strongly recommend that you upgrade as soon as possible. **Bugfixes** * timescale#4804 Skip bucketing when start or end of refresh job is null * timescale#5108 Fix column ordering in compressed table index not following the order of a multi-column segment by definition * timescale#5187 Don't enable clang-tidy by default * timescale#5255 Fix year not being considered as a multiple of day/month in hierarchical continuous aggregates * timescale#5259 Lock down search_path in SPI calls
This release contains bug fixes since the 2.9.2 release. This release is high priority for upgrade. We strongly recommend that you upgrade as soon as possible. **Bugfixes** * #4804 Skip bucketing when start or end of refresh job is null * #5108 Fix column ordering in compressed table index not following the order of a multi-column segment by definition * #5187 Don't enable clang-tidy by default * #5255 Fix year not being considered as a multiple of day/month in hierarchical continuous aggregates * #5259 Lock down search_path in SPI calls
Previously all intervals were converted to seconds using "epoch"
with date_part. However, this treats a year as 365.25 days to
account for leap years, leading to the unexpected situation that
a year is not a multiple of a day or a month.
Fixed by treating month-only intervals as multiples of 30 days.
Fixes #5231