-
Notifications
You must be signed in to change notification settings - Fork 497
refactor(encryption) remove key_metadata from the constructor of an unencrypted manifest writer #2666
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
refactor(encryption) remove key_metadata from the constructor of an unencrypted manifest writer #2666
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,7 +113,6 @@ pub(crate) struct SnapshotProducer<'a> { | |
| pub(crate) table: &'a Table, | ||
| snapshot_id: i64, | ||
| commit_uuid: Uuid, | ||
| key_metadata: Option<Vec<u8>>, | ||
| snapshot_properties: HashMap<String, String>, | ||
| added_data_files: Vec<DataFile>, | ||
| // A counter used to generate unique manifest file names. | ||
|
|
@@ -126,15 +125,13 @@ impl<'a> SnapshotProducer<'a> { | |
| pub(crate) fn new( | ||
| table: &'a Table, | ||
| commit_uuid: Uuid, | ||
| key_metadata: Option<Vec<u8>>, | ||
| snapshot_properties: HashMap<String, String>, | ||
| added_data_files: Vec<DataFile>, | ||
| ) -> Self { | ||
| Self { | ||
| table, | ||
| snapshot_id: Self::generate_unique_snapshot_id(table), | ||
| commit_uuid, | ||
| key_metadata, | ||
| snapshot_properties, | ||
| added_data_files, | ||
| manifest_counter: (0..), | ||
|
|
@@ -255,7 +252,6 @@ impl<'a> SnapshotProducer<'a> { | |
| let builder = ManifestWriterBuilder::new( | ||
| output_file, | ||
| Some(self.snapshot_id), | ||
| self.key_metadata.clone(), | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The metadata here comes from the fast append action which I think is also wrong but I'll remove that in a further follow up PR to keep these refactors targeted.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh metadata becomes dead code on snapshot producer so maybe I will remove here. |
||
| self.table.metadata().current_schema().clone(), | ||
| self.table | ||
| .metadata() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.