timescale / timescaledb

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.
https://www.timescale.com/
Other
17.61k stars 883 forks source link

Remove chunks when truncating a CAgg #6928

Closed fabriziomello closed 4 months ago

fabriziomello commented 4 months ago

When truncating a regular hypertable all chunks are removed but for some reason it don't happen when truncating a continuous aggregate.

Improved it by removing the underlying materialization hypertable chunks when truncating a continuous aggregate.

Disable-check: force-changelog-file

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.90%. Comparing base (59f50f2) to head (9e7e743). Report is 163 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6928 +/- ## ========================================== + Coverage 80.06% 80.90% +0.83% ========================================== Files 190 199 +9 Lines 37181 37192 +11 Branches 9450 9703 +253 ========================================== + Hits 29770 30090 +320 - Misses 2997 3227 +230 + Partials 4414 3875 -539 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.