Skip to content
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

Add error for DELETE triggers with transition tables #7574

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

mkindahl
Copy link
Contributor

@mkindahl mkindahl commented Jan 7, 2025

DELETE triggers cannot be supported for compressed tables not using the hypercore table access method since it can delete an entire compressed segment and a transition table is not built for this case, so generating an error instead.

This commit also adds a bunch of tests for triggers with transition tables for normal compressed tables and extend the hypercore trigger tests.

Disable-check: force-changelog-file

@mkindahl mkindahl self-assigned this Jan 7, 2025
@mkindahl mkindahl marked this pull request as ready for review January 7, 2025 14:59
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.

Project coverage is 82.34%. Comparing base (59f50f2) to head (93cd5c8).
Report is 695 commits behind head on main.

Files with missing lines Patch % Lines
tsl/src/compression/create.c 84.61% 0 Missing and 2 partials ⚠️
src/process_utility.c 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7574      +/-   ##
==========================================
+ Coverage   80.06%   82.34%   +2.28%     
==========================================
  Files         190      238      +48     
  Lines       37181    43820    +6639     
  Branches     9450    11006    +1556     
==========================================
+ Hits        29770    36085    +6315     
- Misses       2997     3398     +401     
+ Partials     4414     4337      -77     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@philkra philkra added this to the TimescaleDB 2.18.0 milestone Jan 9, 2025
@mkindahl mkindahl changed the title Add compressed hypertables transition table tests Add error for DELETE triggers with transition tables Jan 10, 2025
@mkindahl mkindahl force-pushed the test-compression-transition-table branch from 17f36ac to 539a797 Compare January 10, 2025 08:36
@mkindahl mkindahl requested a review from gayyappan January 10, 2025 08:36
@mkindahl mkindahl force-pushed the test-compression-transition-table branch from 539a797 to 6e23edb Compare January 10, 2025 08:38
@mkindahl mkindahl marked this pull request as draft January 10, 2025 08:51
@mkindahl mkindahl force-pushed the test-compression-transition-table branch 2 times, most recently from 6c28cee to 01378ab Compare January 10, 2025 09:01
@mkindahl mkindahl marked this pull request as ready for review January 11, 2025 08:09
@mkindahl mkindahl force-pushed the test-compression-transition-table branch 7 times, most recently from ccb84ca to 8ef1f4d Compare January 14, 2025 07:46
@mkindahl mkindahl force-pushed the test-compression-transition-table branch 2 times, most recently from 6d53080 to 0dd9569 Compare January 15, 2025 06:38
DELETE triggers cannot be supported for compressed tables not using the
hypercore table access method since it can delete an entire compressed
segment and a transition table is not built for this case, so
generating an error for this case.

This commit also adds a bunch of tests for triggers with transition
tables for normal compressed tables and extend the hypercore trigger
tests.
@mkindahl mkindahl force-pushed the test-compression-transition-table branch from 0dd9569 to 93cd5c8 Compare January 15, 2025 06:38
@mkindahl mkindahl enabled auto-merge (rebase) January 15, 2025 06:44
@mkindahl mkindahl merged commit 9de9eec into timescale:main Jan 15, 2025
51 checks passed
@mkindahl mkindahl deleted the test-compression-transition-table branch January 15, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants