-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
} | ||
|
||
#[derive(Clone, Debug)] | ||
pub enum LakehouseSyncTarget { |
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.
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, |
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 could have more fields in future
src/frontend/flight/handler.rs
Outdated
return Err(SyncError::InvalidMessage { | ||
reason: "Unknown table format".to_string(), |
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.
I think you might be able to match exactly on cmd.format()
and avoid this part.
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.