ethe commented on PR #6748:
URL: https://github.com/apache/arrow-rs/pull/6748#issuecomment-2485831597
In this case:
```rust
pub struct ArrowReader<'reader, T> {
reader: &'reader T,
}
impl<T: AsyncFileReader + Send + Sync> AsyncFileReader for ArrowReader<'_,
T> {
fn get_bytes(
&mut self,
range: std::ops::Range<usize>,
) -> std::pin::Pin<
Box<dyn std::future::Future<Output =
parquet::errors::Result<bytes::Bytes>> + Send + '_>,
> {
todo!()
}
fn get_metadata(
&mut self,
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output =
parquet::errors::Result<Arc<parquet::file::metadata::ParquetMetaData>>,
> + Send
+ '_,
>,
> {
todo!()
}
}
fn test<'r, T: AsyncFileReader + Send + Sync>(file: ArrowReader<'r, T>) ->
impl AsyncFileReader {
Box::new(file) as Box<dyn AsyncFileReader>
}
```
`test` function would not pass with currently implementers, after this PR
merged, it would success.
--
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]