Skip to content
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

GH-3078: Use Hadoop FileSystem.openFile() to open files #3079

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

steveloughran
Copy link
Contributor

@steveloughran steveloughran commented Nov 26, 2024

Rationale for this change

If parquet passes down the FileStatus it previously collected, S3A and ABFS clients can skip their own HEAD probe. This saves time, money and IO capacity.

When the read policy is passed in, the clients know immediately what kind of read pattern to expect, rather than infer it as reads take place or from the file suffix.

What changes are included in this PR?

  • Open files with FileSystem.openFile(), passing in file status
  • And read policy of "parquet, vector, random, adaptive"

Are these changes tested?

Through parquet-hadoop.

Are there any user-facing changes?

no.

Closes #3078

* Open files with FileSystem.openFile(), passing in file status
* And read policy of "parquet, vector, random, adaptive"
@steveloughran steveloughran marked this pull request as draft November 27, 2024 12:16
@steveloughran steveloughran marked this pull request as ready for review November 27, 2024 22:05
@wgtmac
Copy link
Member

wgtmac commented Nov 28, 2024

@Fokko @gszadovszky Could you help review this? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Hadoop FileSystem.openFile() to open files
2 participants