You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "ttencate (via GitHub)" <gi...@apache.org> on 2025/03/20 21:23:50 UTC
[I] Should ObjectStore sizes be `u64` instead of `usize`? [arrow-rs-object-store]
ttencate opened a new issue, #61:
URL: https://github.com/apache/arrow-rs-object-store/issues/61
I noticed that [`object_store::ObjectMeta::size`](https://docs.rs/object_store/latest/object_store/struct.ObjectMeta.html#structfield.size) is of type `usize`. On 32-bit platforms, this would limit the value to 4 GiB.
There are object stores out there that accept files larger than 4 GiB. For instance, Google Cloud Storage [supports](https://cloud.google.com/storage/quotas#objects) objects up to 5 TiB. Common local filesystems (with the exception of FAT32) also support larger files.
There might be more APIs where `usize` is used to represent file size, but I didn't check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org