-
Notifications
You must be signed in to change notification settings - Fork 414
perf: optimize table.add_files and inspect.files
#2133
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
Conversation
kevinjqliu
left a comment
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.
LGTM! Thanks for adding the optimization
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
|
@jayceslesar looks like the linter isnt happy, could you run |
|
I wonder if we can eventually replace this portion with rust -- unsure what that implementation supports currently but would be fun to try it out https://github.com/apache/iceberg-rust/tree/main/crates/iceberg/src/inspect |
|
yep thats the goal eventually. I also think the biggest perf bottleneck is reading the avro metadata files. Once we move that part to rust (apache/iceberg-rust#1328), Im curious to see how much the entire process improves. |
table.add_files and inspect.filestable.add_files and inspect.files
|
Thanks @jayceslesar btw i change the PR description so we dont close the 2 issues automatically |
Should help with apache#2130 and apache#2132 Modifies `Table.add_files` to explicitly use `inspect.data_files` and also parallelize `inspect._files` I didn't see anywhere else where looping over manifest entries was parallelized, so seems better to parallelize across manifests than within. No changes here but should be faster. --------- Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
Should help with apache#2130 and apache#2132 Modifies `Table.add_files` to explicitly use `inspect.data_files` and also parallelize `inspect._files` I didn't see anywhere else where looping over manifest entries was parallelized, so seems better to parallelize across manifests than within. No changes here but should be faster. --------- Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
Should help with #2130 and #2132
Modifies
Table.add_filesto explicitly useinspect.data_filesand also parallelizeinspect._filesI didn't see anywhere else where looping over manifest entries was parallelized, so seems better to parallelize across manifests than within.
No changes here but should be faster.