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

Prepare for Iceberg Sync #766

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Prepare for Iceberg Sync #766

merged 2 commits into from
Dec 19, 2024

Conversation

SergeiPatiakin
Copy link
Collaborator

This PR generalizes sync-related code from Delta-specific types towards a more abstract "sync target" type which can be Delta or Iceberg. We do not yet implement Iceberg sync functionality, that will be in a future PR.

@SergeiPatiakin SergeiPatiakin requested review from gruuya and a team December 18, 2024 15:52
}

#[derive(Clone, Debug)]
pub enum LakehouseSyncTarget {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please share if you have a better name for this enum

@@ -56,6 +57,17 @@ pub(super) struct SyncCommitInfo {
new_tx: bool,
}

#[derive(Clone, Debug)]
pub struct IcebergSyncTarget {
url: String,
Copy link
Collaborator Author

@SergeiPatiakin SergeiPatiakin Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could have more fields in future

Comment on lines 193 to 194
return Err(SyncError::InvalidMessage {
reason: "Unknown table format".to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you might be able to match exactly on cmd.format() and avoid this part.

@SergeiPatiakin SergeiPatiakin merged commit cb8605b into main Dec 19, 2024
2 checks passed
@SergeiPatiakin SergeiPatiakin deleted the dev/iceberg-sync-prep branch December 19, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants