Skip to content

Conversation

@Arnaud-Nauwynck
Copy link
Contributor

GH-3074: read footer using 1 call readFully(byte[8]) instead of 5 calls

Rationale for this change

performance

What changes are included in this PR?

only method FilePargetReader.readFooter()

Are these changes tested?

Are there any user-facing changes?

no

Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement! Please make the CI happy.

@wgtmac
Copy link
Member

wgtmac commented Nov 28, 2024

Could you try to rebase it? I think the CI failure is due to based on a problematic commit.

Copy link
Contributor

@steveloughran steveloughran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, at least for now.

Parquet 3.0 is going to add some bytes between the metadata length and MAGIC; I don't know if there is anything extra which could be done here.

I think we could start with some test files which already have this new marker and use parsing that as regression testing

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.

3 participants