abhiaagarwal commented on issue #5524:
URL: https://github.com/apache/arrow-rs/issues/5524#issuecomment-2168305724
@Xuanwo ah, sounds great! I finished implementing it on my end, but it's a
little bit lazy, It's a little bit inelegant, I'll defer to you :)
```rust
impl AsyncFileWriter for ParquetObjectWriter {
fn write(&mut self, bs: Bytes) -> BoxFuture<'_, Result<()>> {
self.upload.put_part(bs.into()).map_err(|e| {
ParquetError::General(format!("ParquetObjectWriter::write error:
{e}"))
}).boxed()
}
fn complete(&mut self) -> BoxFuture<'_, Result<()>> {
self.upload.complete().map_err(|e| {
ParquetError::General(format!("ParquetObjectWriter::complete
error: {e}"))
}).map(|_| Ok(())).boxed()
}
}
```
--
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]