-
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 show_chunks on hypertable by hash #6984
Fix show_chunks on hypertable by hash #6984
Conversation
13b6745
to
0864cb1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6984 +/- ##
==========================================
+ Coverage 80.06% 81.74% +1.68%
==========================================
Files 190 199 +9
Lines 37181 37026 -155
Branches 9450 9680 +230
==========================================
+ Hits 29770 30268 +498
+ Misses 2997 2863 -134
+ Partials 4414 3895 -519 ☔ View full report in Codecov by Sentry. |
0864cb1
to
464cf15
Compare
021e98d
to
40883c1
Compare
test/expected/chunk_utils.out
Outdated
-- Hypertable by hash partitioning | ||
CREATE TABLE test_by_hash (id BIGINT, value FLOAT8); | ||
SELECT create_hypertable('test_by_hash', by_hash('id', 10)); | ||
create_hypertable |
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 hypertable 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!
40883c1
to
3a7611b
Compare
3a7611b
to
1109d85
Compare
src/chunk.c
Outdated
time_dim = hyperspace_get_closed_dimension(ht->space, 0); | ||
|
||
Ensure(time_dim != NULL, | ||
"time dimension not found for hypertable \"%s\".\"%s\"", |
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 should the message be: "partitioning dimesion not found for hypertable"?
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!
1109d85
to
e38bee4
Compare
Using the new hypertable API creating closed dimentions when partitioning by hash was leading to a segfault on show_chunks. Fixed it by checking for the closed primary dimension and erroring out in case of using parameters `older_than` and `newer_than`.
e38bee4
to
ee88a5c
Compare
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.
LGTM!
Using the new hypertable API creating closed dimentions when partitioning by hash was leading to a segfault on show_chunks.
Fixed it by checking for the closed primary dimension and erroring out in case of using parameters
older_than
andnewer_than
.Disable-check: force-changelog-file