-
Notifications
You must be signed in to change notification settings - Fork 38
fix: write delete files to separate manifest list entries #227
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
Conversation
…ented provide more context for unimplemented macro
…or-unimplemented Revert "provide more context for unimplemented macro"
d5ac571 to
15fba63
Compare
|
|
||
| manifest.manifest_path = | ||
| new_manifest_location(&self.table_metadata.location, &self.commit_uuid, 0); | ||
| new_manifest_location(&self.table_metadata.location, &self.commit_uuid, content as usize); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so that data and delete manifest path is different, otherwise if both are present the deletes will overwrite the data (as they're applied second).
This also needs fixing in the append_multiple_filtered, which could be merged with append_filtered; need to think about it some more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, i solved this by having a per-instance manifest counter, which then helps to determine the next manifest id to use in the file name.
19ef3a3 to
373036a
Compare
|
Thanks a lot for the PR. I was also thinking about how to fix this. If I understand the proposal correctly, you create an additional manifest for the delete files for every commit, right? I'm working on a PR that selects two manifests, one for data and one for delete files. Once I'm finished, we can have look at which approach we prefer. This would reduce the number of manifests being written. PR: #228 |
373036a to
3f820e7
Compare
Yes, that's basically it. It ensures all delete files are separated into new manifest list entry/entries, which are solely for deletes.
Sounds great! I can take a look at the (draft) PR, but i suppose anything that ensures the above will fix this. The test whether it works is in this PR as well, it's the change in |
|
Yeah I saw your test. It's great, thanks! |
3f820e7 to
0dc313a
Compare
|
Closing in favor of #228. |
Closes #212.