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

Change Parquet API interaction for u64 #7252

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

Conversation

alchemist51
Copy link

@alchemist51 alchemist51 commented Mar 8, 2025

Which issue does this PR close?

Closes #7238

@github-actions github-actions bot added the parquet Changes to the parquet crate label Mar 8, 2025
@alchemist51 alchemist51 changed the title Change AsyncFileReader trait for u64 Change Parquet API interaction for u64 Mar 8, 2025
@alchemist51
Copy link
Author

alchemist51 commented Mar 8, 2025

I'm trying to change the trait AsyncFileReader to accept the u64 types instead of usize while keeping the other traits the same.

I was trying to do check for what traits we could change in for ParquetWriter though was not able to conclude on it.

Pretty new to the arrow-rs community and raising my first PR! Any feedback is welcome! @alamb @tustvold

@alchemist51 alchemist51 marked this pull request as ready for review March 9, 2025 18:38
Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

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

This is looking promising thank you. Just to set expectations as this will be a breaking change it will need to wait for the next breaking release, likely scheduled for April.

@@ -71,7 +71,7 @@ pub trait MetadataFetch {

impl<T: AsyncFileReader> MetadataFetch for &mut T {
fn fetch(&mut self, range: Range<usize>) -> BoxFuture<'_, Result<Bytes>> {
self.get_bytes(range)
self.get_bytes(range.start as u64..range.end as u64)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should also change this trait

@tustvold tustvold added api-change Changes to the arrow API next-major-release the PR has API changes and it waiting on the next major version labels Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API next-major-release the PR has API changes and it waiting on the next major version parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parquet Use U64 Instead of Usize
2 participants