-
Notifications
You must be signed in to change notification settings - Fork 883
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 segfault creating CAgg on hypertable by hash #6981
Fix segfault creating CAgg on hypertable by hash #6981
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6981 +/- ##
==========================================
+ Coverage 80.06% 81.74% +1.68%
==========================================
Files 190 199 +9
Lines 37181 37015 -166
Branches 9450 9673 +223
==========================================
+ Hits 29770 30259 +489
+ Misses 2997 2862 -135
+ Partials 4414 3894 -520 ☔ View full report in Codecov by Sentry. |
d917a6f
to
561f428
Compare
561f428
to
38e294f
Compare
tsl/test/expected/cagg_ddl-14.out
Outdated
@@ -2116,3 +2116,20 @@ SELECT * FROM _timescaledb_catalog.compression_settings; | |||
-------+-----------+---------+--------------+-------------------- | |||
(0 rows) | |||
|
|||
-- hash partitioning test | |||
CREATE TABLE test_by_hash (id BIGINT, value FLOAT8); | |||
SELECT create_hypertable('test_by_hash', by_hash('id', 8)); |
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.
@fabriziomello with my PR #6993 we won't allow creation of hypertables with by_hash
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.
Fixed!
The new hypertable API allows create it with primary space partition and CAggs doesn't support hypertables with custom partition functions. Fixed the segfault by properly checking if there are an open dimension available during the validation.
38e294f
to
a5d846c
Compare
The new hypertable API allows create it with primary space partition and CAggs doesn't support hypertables with custom partition functions.
Fixed the segfault by properly checking if there are an open dimension available during the validation.
Disable-check: force-changelog-file