-
Notifications
You must be signed in to change notification settings - Fork 226
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
feat: Make duplicate check optional for adding parquet files #1034
Conversation
crates/iceberg/src/transaction.rs
Outdated
} | ||
|
||
/// Finished building the action and apply it to the transaction. | ||
pub async fn apply(self) -> Result<Transaction<'a>> { | ||
pub async fn apply(self, check_duplicate: bool) -> Result<Transaction<'a>> { |
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.
We should add an option in FileAppendAction
rather in apply
method, since this approach can't be extended to more options.
struct FileAppendAction {
check_duplicate: bool
}
impl FileAppendAction {
pub fn check_duplicate(v: bool) -> Self {
this.check_duplicate = v;
self
}
}
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.
@liurenjie1024 Thanks, should be good now 👍
Thanks @jonathanc-n for this pr! |
…1034) ## Which issue does this PR close? - Closes apache#1031. ## What changes are included in this PR? Added option for checking duplicates when adding parquet files.
Which issue does this PR close?
FastAppendAction
. #1031.What changes are included in this PR?
Added option for checking duplicates when adding parquet files.