Sruhvx-jpg opened a new pull request, #3167:
URL: https://github.com/apache/iceberg-rust/pull/3167

   ## Which issue does this PR close?
   
   - Closes #3166
   
   ## What changes are included in this PR?
   
   - **Zero-Copy Writes**: Switch `ObjectStoreWriter::write` from 
`writer.write(&bs)` to `writer.put(bs)` to pass owned `bytes::Bytes` directly 
without copying memory into intermediate buffers.
   - **Empty Bucket Validation**: Reject S3 URLs with empty bucket strings 
(e.g. `s3:///path/to/file` or `s3://`) with `ErrorKind::DataInvalid`.
   - **Unit Tests**: Added `test_parse_s3_url_empty_bucket`.
   
   ## Context
   Builds on the foundation introduced in #3165 to resolve #3166.
   
   ## Are these changes tested?
   
   Yes, all 12 unit tests passing in `crates/storage/object_store` (`cargo test 
-p iceberg-storage-object_store`).


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to