Skip to content

Core: Improve HadoopFileIO performance when working with cloud storage#15586

Closed
steveloughran wants to merge 5 commits into
apache:mainfrom
steveloughran:pr/15353-cloud-io
Closed

Core: Improve HadoopFileIO performance when working with cloud storage#15586
steveloughran wants to merge 5 commits into
apache:mainfrom
steveloughran:pr/15353-cloud-io

Conversation

@steveloughran

@steveloughran steveloughran commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #15353

Improve file opening and read times by

  • keeping file status when known, using it in openFile() call to eliminate HEAD requests
  • choosing file input policy when reading a file (Util.determineReadPolicy()).

ParquetIO already hands down file opening to parquet, which does the right thing.l
What matters for it is retaining any FileStatus already obtained, which is what the changes in TableMigrationUtil do.

It's a shame that parquet (currently) lacks a way to skip that stat() call which is does to get file length, as this adds a HEAD request to all openings of a parquet file where the length is known from a manifest. That is fixable and would save 100+mS per file opening, as well as the associated IO capacity.

However, until #12554 is fixed, that manifest file length can't be trusted, so the stat() matters. It's possibly why this issue hasn't been noticed on iceberg-java code

@steveloughran steveloughran marked this pull request as draft March 11, 2026 17:57
@steveloughran steveloughran changed the title Improve HadoopFileIO when working with cloud storage Core: Improve HadoopFileIO performance when working with cloud storage Mar 11, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.

@github-actions github-actions Bot added the stale label May 11, 2026
@steveloughran

Copy link
Copy Markdown
Contributor Author

still live

* set read policy on filetype.
* if status is set, pass in
* if length is known, pass in
* handle the future completion by extracting the cause
- read policy set in open file

TODO
- validate policy choice of puffin files
+ roll back making listing closeable(); too much a change for too little
value.
@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Jun 12, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions Bot closed this Jun 19, 2026
@steveloughran

Copy link
Copy Markdown
Contributor Author

This was marked stale and closed while I was on a european length holiday...clearly it is designed for a US developer world where a 2 week break is unusual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Core: Improve HadoopFileIO performance when working with cloud storage

1 participant