Repository navigation
WIP: Respect ttl_only_drop_parts on alter table materialize ttl - #59189
Closed
arthurpassos wants to merge 19 commits into
Closed
arthurpassos wants to merge 19 commits into
arthurpassos wants to merge 19 commits into
Conversation
arthurpassos
commented
Jan 25, 2024
| ctx->new_data_part->remove_tmp_policy = IMergeTreeDataPart::BlobsRemovalPolicyForTemporaryParts::ASK_KEEPER; | ||
|
|
||
| task = std::make_unique<MutateSomePartColumnsTask>(ctx); | ||
| if (ctx->execute_ttl_type == ExecuteTTLType::RECALCULATE && ctx->data->getSettings()->ttl_only_drop_parts) |
Contributor
Author
There was a problem hiding this comment.
fix: materialize_ttl_recalc_only will become recalc and drop
Contributor
|
This is an automated comment for commit 4c85503 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
Contributor
Author
|
The "magic" of this PR came from restricting the number of columns to be read by relying on |
19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Respect
ttl_only_drop_partsonalter table materialize ttl. Only read the necessary columns to recompute TTL and drop parts by replacing them with an empty one.Documentation entry for user-facing changes