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
Filter materialized hypertables in view #2384
Filter materialized hypertables in view #2384
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2384 +/- ##
==========================================
+ Coverage 88.51% 88.53% +0.01%
==========================================
Files 212 212
Lines 34924 34926 +2
==========================================
+ Hits 30912 30920 +8
+ Misses 4012 4006 -6
Continue to review full report at Codecov.
|
7ecc0ee
to
41b712c
Compare
@erimatnor to note: unless intentional, link in the description points to a pull request. |
@@ -38,7 +40,7 @@ CREATE OR REPLACE VIEW timescaledb_information.hypertables AS | |||
GROUP BY hypertable_id) dn | |||
ON ht.id = dn.hypertable_id | |||
WHERE ht.compressed is false --> no internal compression tables |
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.
It's not direct part of PR, but can you fix capitalisation of the keywords, since it is related and was overlooked in the correct PR review?
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.
This issue is prevalent throughout the SQL code. I suggest we adopt a formatter and make sure this is fixed in all places.
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.
This is next to your line, so it was an obvious and easy fix, taking in account that you were fixing commit message and rebase in any case. Postponing is also fine (it just looked to me weird to have two lines next to each other in different style).
@erimatnor I agree with @pmwkaa that the commit message should link to an issue, which it fixes, not to a PR. |
41b712c
to
0e8464a
Compare
Fixed! |
This change filters materialized hypertables from the hypertables view, similar to how internal compression hypertables are filtered. Materialized hypertables are internal objects created as a side effect of creating a continuous aggregate, and these internal hypertables are still listed in the continuous_aggregates view. Fixes timescale#2383
0e8464a
to
62f8c4d
Compare
This change filters materialized hypertables from the hypertables
view, similar to how internal compression hypertables are
filtered.
Materialized hypertables are internal objects created as a side effect
of creating a continuous aggregate, and these internal hypertables are
still listed in the continuous_aggregates view.
Fixes #2383