Luosuu opened a new issue, #6078:
URL: https://github.com/apache/arrow-rs/issues/6078

   **Which part is this question about**
   <!--
   Is it code base, library api, documentation or some other part?
   -->
   
   I know that we can construct a `RecordReader` like
   
   ```rust
   let mut record_reader: GenericRecordReader<Vec<i32>, 
ColumnValueDecoderImpl<Int32Type>> =
           RecordReader::<Int32Type>::new(column_desc.clone());
   ```
   
   In many tests, there are
   ```rust
    let mut record_reader = RecordReader::<Int32Type>::new(desc.clone());
   ```
   But I don't see types other than Int32Type, such as ByteArrayType.
   
   **Describe your question**
   <!--
   A clear and concise description of what the question is.
   -->
   
   Is RecordReader exclusive to Int32Type?
   When I naively try to construct a RecordReader for ByteArrayType like:
   
   ```rust
   let mut record_reader = RecordReader::<ByteArrayType>::new(desc.clone());
   ```
   
   I got errors like
   
   ```
   error[E0599]: the function or associated item `new` exists for struct 
`GenericRecordReader<Vec<ByteArray>, ColumnValueDecoderImpl<ByteArrayType>>`, 
but its trait bounds were not satisfied
   ....
       |
   387 |     let mut record_reader = 
RecordReader::<ByteArrayType>::new(column_desc.clone());
       |                                                            ^^^ 
function or associated item cannot be called due to unsatisfied trait bounds
       |
      ::: parquet/src/data_type.rs:106:1
       |
   106 | pub struct ByteArray {
       | -------------------- doesn't satisfy `data_type::ByteArray: 
std::marker::Copy`
   ```
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->
   I am just learning about the codebase.


-- 
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]

Reply via email to