Core: Select for rewriting the files belonging to old partitioning schemes #12083
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.
After doing a partition-evolution attempt, the implicit
rewrite_data_files
procedure will not pick up files belonging to the old partitioning schema.The only way to rewrite those files is to use the
rewrite-all
parameter (and have to rewrite even files that are correctly-sized and correctly-placed - this becomes problematic for tables larger with more than 1TB in size) or through a series of Copy-On-Write updates (which doesn't fit the environment I work on, since that table will not be used for writing in a while).In this fix, I've modified the implicit criteria for selection in the
rewrite_data_files
procedure in order to also target the files of the old partitioning scheme.