-
Notifications
You must be signed in to change notification settings - Fork 312
fix(iceberg): add_files correctly check duplicates #1395
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
fix(iceberg): add_files correctly check duplicates #1395
Conversation
9813024
to
4dd9e78
Compare
I changed my initial implementation so that DELETED manifest entries are skipped.
|
@@ -379,6 +364,7 @@ mod tests { | |||
|
|||
// Attempt to add the existing Parquet files with fast append. | |||
let new_tx = fast_append_action | |||
.with_check_duplicate(false) |
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'm not sure what was initial purpose of the test.
But it looks like to check ability of adding existing parquet files to the table (physically existing not in table).
In which case adding with_check_duplicate(false)
here is fine.
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 this is a wrong test, we should remove it.
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.
Removed.
08f5af5
to
a90174a
Compare
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.
Thanks @Erigara for this pr, generally looks good!
let mut append_action = tx | ||
.fast_append(None, vec![]) | ||
.unwrap() | ||
.with_check_duplicate(false); |
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.
Why we need this? I think if there exists duplicated files in this test, we should remove it.
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.
By just looking at the test idk why we are trying to commit the same files twice.
So i agree let's remove it.
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.
Removed.
@@ -379,6 +364,7 @@ mod tests { | |||
|
|||
// Attempt to add the existing Parquet files with fast append. | |||
let new_tx = fast_append_action | |||
.with_check_duplicate(false) |
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 this is a wrong test, we should remove it.
a90174a
to
00b7b87
Compare
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.
Thanks @Erigara for this pr!
Which issue does this PR close?
add_files
doesn't actually check duplicated files #1394.What changes are included in this PR?
file_path
from itscan
Are these changes tested?