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 CAgg on CAgg variable bucket size validation #5170
Merged
fabriziomello
merged 1 commit into
timescale:main
from
fabriziomello:fix_cagg_on_cagg_bucket_size_validation_take2
Jan 13, 2023
Merged
Fix CAgg on CAgg variable bucket size validation #5170
fabriziomello
merged 1 commit into
timescale:main
from
fabriziomello:fix_cagg_on_cagg_bucket_size_validation_take2
Jan 13, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## main #5170 +/- ##
===========================================
+ Coverage 61.85% 89.24% +27.39%
===========================================
Files 225 225
Lines 45618 51778 +6160
===========================================
+ Hits 28217 46210 +17993
+ Misses 17401 5568 -11833
Continue to review full report at Codecov.
|
fabriziomello
force-pushed
the
fix_cagg_on_cagg_bucket_size_validation_take2
branch
12 times, most recently
from
January 11, 2023 18:47
72da7cb
to
acffcc6
Compare
@pmwkaa, @nikkhils: please review this pull request.
|
fabriziomello
force-pushed
the
fix_cagg_on_cagg_bucket_size_validation_take2
branch
4 times, most recently
from
January 12, 2023 22:31
c068802
to
ddc7742
Compare
svenklemm
approved these changes
Jan 13, 2023
akuzm
approved these changes
Jan 13, 2023
Previous attempt to fix it (PR timescale#5130) was not entirely correct because the bucket width calculation for interval width was wrong. Fixed it by properly calculate the bucket width for intervals using the Postgres internal function `interval_part` to extract the epoch of the interval and execute the validations. For integer widths use the already calculated bucket width. Fixes timescale#5158, timescale#5168
fabriziomello
force-pushed
the
fix_cagg_on_cagg_bucket_size_validation_take2
branch
from
January 13, 2023 14:35
ddc7742
to
8f0786a
Compare
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 18, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5180 Fix dist_cagg flaky test * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5114 Fix issue with deleting data node and dropping database * timescale#5172 Remove parallel safe from partialize_agg * timescale#5162 Fix telemetry_stats test in PG15 * timescale#5130 Fix CAgg on CAgg variable bucket size validation * timescale#5133 Fix CAgg on CAgg different column order * timescale#5152 Fix adding column with NULL constraint * timescale#5136 Fix SELECT from partial compressed chunks * timescale#5181 Fix ChunkAppend, ConstraintAwareAppend child subplan
Closed
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 18, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5180 Fix dist_cagg flaky test * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5114 Fix issue with deleting data node and dropping database * timescale#5172 Remove parallel safe from partialize_agg * timescale#5162 Fix telemetry_stats test in PG15 * timescale#5133 Fix CAgg on CAgg different column order on the original hypertable * timescale#5152 Fix adding column with NULL constraint to compressed hypertable * timescale#5136 Fix SELECT from partial compressed chunks * timescale#5181 Fix ChunkAppend, ConstraintAwareAppend child subplan
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 19, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5180 Fix dist_cagg flaky test * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5114 Fix issue with deleting data node and dropping database * timescale#5172 Remove parallel safe from partialize_agg * timescale#5162 Fix telemetry_stats test in PG15 * timescale#5133 Fix CAgg on CAgg different column order on the original hypertable * timescale#5152 Fix adding column with NULL constraint to compressed hypertable * timescale#5136 Fix SELECT from partial compressed chunks * timescale#5181 Fix ChunkAppend, ConstraintAwareAppend child subplan * timescale#5193 Fix repartition behavior when attaching data node
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 19, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5180 Fix dist_cagg flaky test * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5114 Fix issue with deleting data node and dropping database * timescale#5133 Fix CAgg on CAgg different column order on the original hypertable * timescale#5152 Fix adding column with NULL constraint to compressed hypertable * timescale#5181 Fix ChunkAppend, ConstraintAwareAppend child subplan * timescale#5193 Fix repartition behavior when attaching data node
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 19, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5180 Fix dist_cagg flaky test * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5114 Fix issue with deleting data node and dropping database * timescale#5133 Fix CAgg on CAgg different column order on the original hypertable * timescale#5152 Fix adding column with NULL constraint to compressed hypertable * timescale#5181 Fix ChunkAppend, ConstraintAwareAppend child subplan * timescale#5193 Fix repartition behavior when attaching data node
Merged
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 19, 2023
Release 2.9.2 This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5152 Fix adding column with NULL constraint to compressed hypertable * timescale#5133 Fix CAgg on CAgg different column order on the original hypertable * timescale#5114 Fix issue with deleting data node and dropping database * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5180 Fix default data node availability status * timescale#5181 Fix ChunkAppend, ConstraintAwareAppend child subplan * timescale#5193 Fix repartition behavior when attaching data node
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 19, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5114 Fix issue with deleting data node and dropping database * timescale#5133 Fix CAgg on CAgg different column order on the original hypertable * timescale#5152 Fix adding column with NULL constraint to compressed hypertable * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5180 Fix default data node availability status * timescale#5181 Fix ChunkAppend, ConstraintAwareAppend child subplan * timescale#5193 Fix repartition behavior when attaching data node
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 20, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5114 Fix issue with deleting data node and dropping database * timescale#5133 Fix CAgg on CAgg using different column order on the original hypertable * timescale#5152 Fix adding column with NULL constraint to compressed hypertable * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5180 Fix default data node availability status * timescale#5181 Fix ChunkAppend and ConstraintAwareAppend with TidRangeScan child subplan * timescale#5193 Fix repartition behavior when attaching data node
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 23, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5114 Fix issue with deleting data node and dropping the database on multi-node * timescale#5133 Fix creating a CAgg on a CAgg where the time column is in a different order of the original hypertable * timescale#5152 Fix adding column with NULL constraint to compressed hypertable * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5180 Fix default data node availability status on multi-node * timescale#5181 Fix ChunkAppend and ConstraintAwareAppend with TidRangeScan child subplan * timescale#5193 Fix repartition behavior when attaching data node on multi-node
sb230132
added a commit
to sb230132/timescaledb
that referenced
this pull request
Jan 23, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * timescale#5114 Fix issue with deleting data node and dropping the database on multi-node * timescale#5133 Fix creating a CAgg on a CAgg where the time column is in a different order of the original hypertable * timescale#5152 Fix adding column with NULL constraint to compressed hypertable * timescale#5170 Fix CAgg on CAgg variable bucket size validation * timescale#5180 Fix default data node availability status on multi-node * timescale#5181 Fix ChunkAppend and ConstraintAwareAppend with TidRangeScan child subplan * timescale#5193 Fix repartition behavior when attaching data node on multi-node
sb230132
added a commit
that referenced
this pull request
Jan 23, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * #5114 Fix issue with deleting data node and dropping the database on multi-node * #5133 Fix creating a CAgg on a CAgg where the time column is in a different order of the original hypertable * #5152 Fix adding column with NULL constraint to compressed hypertable * #5170 Fix CAgg on CAgg variable bucket size validation * #5180 Fix default data node availability status on multi-node * #5181 Fix ChunkAppend and ConstraintAwareAppend with TidRangeScan child subplan * #5193 Fix repartition behavior when attaching data node on multi-node
sb230132
added a commit
that referenced
this pull request
Jan 24, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * #5114 Fix issue with deleting data node and dropping the database on multi-node * #5133 Fix creating a CAgg on a CAgg where the time column is in a different order of the original hypertable * #5152 Fix adding column with NULL constraint to compressed hypertable * #5170 Fix CAgg on CAgg variable bucket size validation * #5180 Fix default data node availability status on multi-node * #5181 Fix ChunkAppend and ConstraintAwareAppend with TidRangeScan child subplan * #5193 Fix repartition behavior when attaching data node on multi-node
sb230132
added a commit
that referenced
this pull request
Jan 24, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * #5114 Fix issue with deleting data node and dropping the database on multi-node * #5133 Fix creating a CAgg on a CAgg where the time column is in a different order of the original hypertable * #5152 Fix adding column with NULL constraint to compressed hypertable * #5170 Fix CAgg on CAgg variable bucket size validation * #5180 Fix default data node availability status on multi-node * #5181 Fix ChunkAppend and ConstraintAwareAppend with TidRangeScan child subplan * #5193 Fix repartition behavior when attaching data node on multi-node
sb230132
added a commit
that referenced
this pull request
Jan 24, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * #5114 Fix issue with deleting data node and dropping the database on multi-node * #5133 Fix creating a CAgg on a CAgg where the time column is in a different order of the original hypertable * #5152 Fix adding column with NULL constraint to compressed hypertable * #5170 Fix CAgg on CAgg variable bucket size validation * #5180 Fix default data node availability status on multi-node * #5181 Fix ChunkAppend and ConstraintAwareAppend with TidRangeScan child subplan * #5193 Fix repartition behavior when attaching data node on multi-node
sb230132
added a commit
that referenced
this pull request
Jan 24, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * #5114 Fix issue with deleting data node and dropping the database on multi-node * #5133 Fix creating a CAgg on a CAgg where the time column is in a different order of the original hypertable * #5152 Fix adding column with NULL constraint to compressed hypertable * #5170 Fix CAgg on CAgg variable bucket size validation * #5180 Fix default data node availability status on multi-node * #5181 Fix ChunkAppend and ConstraintAwareAppend with TidRangeScan child subplan * #5193 Fix repartition behavior when attaching data node on multi-node
sb230132
added a commit
that referenced
this pull request
Jan 24, 2023
This release contains bug fixes since the 2.9.1 release. We recommend that you upgrade at the next available opportunity. **Bugfixes** * #5114 Fix issue with deleting data node and dropping the database on multi-node * #5133 Fix creating a CAgg on a CAgg where the time column is in a different order of the original hypertable * #5152 Fix adding column with NULL constraint to compressed hypertable * #5170 Fix CAgg on CAgg variable bucket size validation * #5180 Fix default data node availability status on multi-node * #5181 Fix ChunkAppend and ConstraintAwareAppend with TidRangeScan child subplan * #5193 Fix repartition behavior when attaching data node on multi-node
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previous attempt to fix it (PR #5130) was not entirely correct because the bucket width calculation for interval width was wrong.
Fixed it by properly calculate the bucket width for intervals using the Postgres internal function
interval_part
to extract the epoch of the interval and execute the validations. For integer widths use the already calculated bucket width.Fixes #5158, #5168