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

Don't rewrite parts not touched by mutations #2694

Merged
merged 4 commits into from
Jul 20, 2018

Conversation

ztlpn
Copy link
Contributor

@ztlpn ztlpn commented Jul 20, 2018

Apparently the easiest way to use MergeTree indexes when mutating parts is to use the full InterpreterSelectQuery machinery. For that to work a fake storage was implemented that reads only from a single MergeTree part (StorageFromMergeTreeDataPart).

The parts that are not touched are copied using localBackup() and not simply renamed to avoid difficulties when status of the part commit operation in ZooKeeper is unknown.

@alexey-milovidov alexey-milovidov merged commit 0fed05d into master Jul 20, 2018
@filimonov filimonov added the comp-mutations ALTER UPDATE/DELETE label May 7, 2019
@Felixoid Felixoid deleted the mutations-skip-parts branch April 10, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-mutations ALTER UPDATE/DELETE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants